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 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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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 {...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |