i am very new delhiprogrammer started around for 2months. i am doing in delphi ver 3. i have working on the ftp project in delphi for the past two weeks. in this i will be connecting to the remote server through dial up connection. the problem is there in the exit button which i will click after the file transfer is over. the code for this is written as follows
procedure Tftpfrm.btnexitClick(Sender: TObject);
procedure Tftpfrm.FormClose(Sender: TObject; var Action: TCloseAction);
if ftp1.busy then
while ftp1.busy do
the problem occurs in the close; statement i.e. OnFormClose where an exception occurs as (i.e. EAccessViolation exception) when in tried to handle it through the exception handling it shows me another error like "this program has performed an illegal operation and if this persist aontact the program vendor." and also shows an error in the NMSCKN.dll which is totlly absurb for me.
even i took out all the above coding from the exit and just put
the same problem continues.
NOTE: the ftp is properly exitted i.e. it goes to the state 5 and state 6.
PLZ guide me as soon as possilble