Runtime Error but no error in debugger?

J

jcrouse

I have been beating this around for 6 or 8 hours now. I swear it used to
work but I've changed quite a few things. I tried to revert to an earlier
version but it does the same thing now. When I run my code in the GDI it
runs fine. However, when I compile, install and run it I get an error. I am
trapping them. I posted the error log below. Any ideas what I'm missing
here?

System.NullReferenceException: Object reference not set to an instance of an
object.
at CPViewer.frmSaveConfig.btnTest_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)


Thanks,
John
 
G

Guest

Silly question, but what did you do to fix it?

I have seen this sort of error when a user copies their code to a cdrom and
then they copy it on another drive. Cdroms will automatically set all code
and anything else in their folders to readonly. The fix is to right click on
the main folder and uncheck the readonly for the main and all the sub files.
It should work then.

Rachel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top