Odd Problem In VB.Net, Please Help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If anything occurs (open a program, move an application window, switch between applications, click the start buttong) while my application is running, a null reference exception is thrown. The application is very simple, all it does it retrieve the contents of a local directory, delete them, retrieve the contents of a remote directory and copy them, any ideas what would cause this? I can post the code if it is needed, All I use is Directory.GetDirectories, Directory.GetFiles, Directory.Delete, Directory.Copy, File.Copy, and File.Delete.
 
* "=?Utf-8?B?SmFzb24gTW9vcmU=?= said:
If anything occurs (open a program, move an application window, switch
between applications, click the start buttong) while my application is
running, a null reference exception is thrown.

Please post the complete exception text + callstack.
 
Sorry, I figured it out, I am trying to get the text to refresh so I used activeform.update instead of just using the update method... That was causing the crash...

I am still having a problem getting the form to update after moving it. When I move the form it stops updating, and if I click it, it says that it is not responding. Is there any way to pause the execution of the application so that the form can update?
 
Back
Top