473,472 Members | 2,181 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Runtime Error but no error in debugger?

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(MouseEventAr gs 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(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
Thanks,
John
Nov 21 '05 #1
2 1136
Resolved!

"jcrouse" <me> wrote in message
news:u8**************@TK2MSFTNGP09.phx.gbl...
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(MouseEventAr gs 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(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
Thanks,
John

Nov 21 '05 #2
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

"jcrouse" wrote:
Resolved!

"jcrouse" <me> wrote in message
news:u8**************@TK2MSFTNGP09.phx.gbl...
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(MouseEventAr gs 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(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
Thanks,
John


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bob Bamberg | last post by:
Hello All, I have been trying without luck to get some information on debugging the Runtime Error R6025 - Pure Virtual Function Call. I am working in C++ and have only one class that is derived...
4
by: Sheryl Reed | last post by:
Hi, I am using this browser that came with an sbcglobal account and when I click on the built in "shopping" button (and others), sometimes i get a jscript runtime error. It happens often but not...
0
by: Gary Karasik | last post by:
Hi, One of my SBS 2K3 servers is giving the following errors when trying to run certain applications. Some Googling indicates that these are .Net Framework errors. I've tried reapplying .Net...
2
by: fanfromfla | last post by:
I am using a database that has worked for many years for a holiday project for needy families. My organization recently upgraded its server and changed everyone to Windows XP. I just mention that...
7
by: yuanlinjiang | last post by:
I am working on converting a win32 console application from VC6 to VC7. My version is Microsoft Development Environment 2003 version 7.1.3088. The code works fine on VC6. it is a console...
12
by: Cleverbum | last post by:
Hi, I'm a complete beginner, having written my second program and finally got it to compile, I've got an error I can't track down occurring at runtime - basically whatever I do it says...
5
by: mikes1962 | last post by:
I am developing a Dialog based application using visual c++ .net 2003 running on XP, and when I run I periodically get the following error message. "The application has requested runtime to...
7
by: Jon Davis | last post by:
In order to gracefully handle exceptions at runtime but cause the debugger to break in the place where the exceptions occur when debugging, I used to write code like this: #if !DEBUG try {...
7
by: shaunb | last post by:
Hi. I am, hopefully, coming towards the end of my program, just need a little bit of help with this runtime error on my program: This appears when i run the debugger, appears when i get to...
3
by: falderals | last post by:
I get the runtime error "_gat is undefined" and a popup yes/no option to debug when I run the code below which is code to "screen scrape" the text off a web page without a browser. When I click "no...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.