Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Peculiar Crash Error

$
0
0

I have a windows form with a textbox, and my pushbutton event takes the value of the textbox and plugs it into my SQL string.  Which will then connects to SQL Server and pulls data into an excel workbook and saves it.  Works GREAT on the 1st run.  However, if I tried to do it again, I get a error of

Unhandled exception has occured in your application. If you click Continue the application will ignore this error and atempt to continue.  If you click Quit the application will close immediately.

Object reference not set to an instance of an object.

Any ideas on why it executes no issue round 1, but any subsequent run produces the above error, unless the windows form is closd and re-opened?  If coding is needed just let me know and I will supply.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>