Exception thrown when form.Close();

Last post 06-24-2008 16:08 by JennyFaifel. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-24-2008 13:19

    Exception thrown when form.Close();

    Hi,

    here is the piece of code I have a problem with:

           void ftp_Connected(FTP source)
            {

                MessageBox.Show("connected! successfully");
                _ftp.Disconnect();         


                nwstApplication._loginSuccessful = true;
                this.Close();
           }

     

    Everything goes well untill this.Close() where I am getting an exception thrown and the stack shows it's being thrown in ConnectThread() in your FTP.cs class.

     

    Any ideas?

    I should be able to disconnect and close the form, correct?

    Thanks in advance.
     

  • 06-24-2008 16:08 In reply to

    Re: Exception thrown when form.Close();

    I have to add that the exception being thrown is a NotSupported exception.... 

     

    I would like to use this lib very much, but needing to close a form upon disconnect, it seems that I am going to have to do something else.

     

    Doesn't seem that this forum is being frequented very much, unfortunately. 

Page 1 of 1 (2 items)