can't close object

hi

I'm trying to close my application but it still active and i need to use ctrl+alt+del


/////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////



Private Sub connect(txt_user, txt_pass)

  

 '   load licence strKey

	Set objGlobal = CreateObject("sfFTPLib.Global")

	If objGlobal.LoadLicenseKeyData(strKey) Then

		Label23.Caption = "OK licence"

	Else

	   Label23.Caption = "Failed licence"

	End If

	

	Set objFTP = CreateObject("sfFTPLib.FTPConnectionSTA")

	

	objFTP.Host = txtServer

	objFTP.Username = txt_user

	objFTP.Password = txt_pass

	objFTP.HidePassword = True

	objFTP.LogFile = "VB6Demo.log"

	objFTP.Port = 21

	objFTP.Protocol = ftpProtocolNormal

	objFTP.Passive = True



 

   If objFTP.Connect = sfFTPLib.enumError.ftpErrorSuccess Then

	   objFTP.DataTransferType = ftpDataTransferTypeImage

	   Exit Sub

	Else

	   DoEvents

	   objFTP.Disconnect

	   objFTP.Close

	   Call connect(txt_user, txt_pass)

	End If

end sub

///////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////



Private Sub exit_Click()

		 

		   On Error Resume Next

		   objFTP.Abort

		   objFTP.Disconnect

		   objFTP.Close

		   Unload Me

		   End

   

End Sub




******************************************************
******************************************************

why the project still active in memory ???? and how could i force him to close ??

thanks

david

If you need technical support please purchase a license and enter your license ID into your forum profile.


If you need technical support please purchase a license and enter your license ID into your forum profile.

i ask the Q in public support .
why should i purchase a license if i have simple problem and you cant help me ??



thanks

david

Are you using VB6?


Are you using VB6?


yes i am using vb6 with sp6

thanks
david

Try the sample applications provided in the setup package. If it works there is probably something wrong with your code.

The code you posted seems incomplete to me. Provided the full code.

Also you forgot to mention what version you are using.

Regards,
SmartFTP