Jump to content


Photo

FTPConnection undeclared in Delphi 4/2006/2009


  • Please log in to reply
3 replies to this topic

#1 domee

domee
  • Members
  • 2 posts

Posted 15 January 2009 - 02:11 PM

Hello Forum,

I am just trying the SmartFTP Library, but unfortunately the Demo fails.

I imported the .dll to Delphi so that there is a sfFTPLib_TLB.pas and run the Demo (Delphi2005forWindowsDemo.dpr), but Delphi halts on line 11:

10 var
11 objFTP : FTPConnection;

Error Message:

E2003 Undeklarierter Bezeichner: 'FTPConnection'

('FTPConnection' undeclared).

And Delphi seems to be right, in sfFTPLib_TLB.pas there is no FTPConnection, but a SFTPConnection.

What is going wrong here? It seems to me, that the dll is not correctly imported. What can I do about it?
Many Thanks domee

PS I did this with Delphi 4, Turbo Delphi (2006) and Delphi 2009.

#2 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 15 January 2009 - 02:22 PM

Try FTPConnectionMTA instead of FTPConnection

#3 domee

domee
  • Members
  • 2 posts

Posted 18 January 2009 - 04:11 PM

Thanx, that did it!
But unfortunately, the library creates an av when exiting. After that, there is no more connection possible until windows is restarted. SmartFTP or other programs are not affected, but every program using the library. Because it happens with the demo as well, I think that the error must be created in the library. Delphi/Windows says:

access violation at 0xfeeefeee: read of address 0xfeeefeee

What can this be?
many Thanks domee

PS I did this with the ftp demo mentioned above in Turbo Delphi on a clean Windows XP SP2
PS That there is no more connection possible is not affected by firewalls; I temporary turned them off.

Edited by domee, 18 January 2009 - 04:15 PM.


#4 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 18 January 2009 - 04:18 PM

I'm sorry but I cannot reproduce it. We also have other customers that are using the FTP Library with Delphi (http://www.2brightsp...cback/sbse.html) and they don't see problems either.

Try to unitialize the FTPConnection object (or set it to NULL) before the application exists.

Please provide a crash dump as described here:
http://www.smartftp....orts-f2594.html

Regards,
Mat




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users