473,217 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,217 software developers and data experts.

NullReferenceException in System.Windows.Forms.SafeNativeMethods.MessageBox

Hi, I'm getting an exception that really has me stumped. It's sporadic
at best, it's only happened a handful of times.
This particular time it happened when the user pressed 'Alt-S' to save
the data that they were entering.

Following is all exception information.

Any thoughts much appreciated.

Cheers
Greg
User: *****
When: 2005-07-12T16:00:52
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: System.Windows.Forms
Site: Int32 MessageBox(System.Runtime.InteropServices.HandleRe f,
System.String, System.String, Int32)

Trace:
at System.Windows.Forms.SafeNativeMethods.MessageBox( HandleRef hWnd,
String text, String caption, Int32 type)
at System.Windows.Forms.MessageBox.ShowCore(IWin32Win dow owner,
String text, String caption, MessageBoxButtons buttons, MessageBoxIcon
icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options)
at System.Windows.Forms.MessageBox.Show(IWin32Window owner, String
text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon)
at ConsignmentUI.Process.ShowConsignment.SaveClicked( Object sender,
EventArgs e)
at ConsignmentUI.Components.Pages.ConsignmentPage.OnS aveClicked()
at
ConsignmentUI.Components.Pages.ConsignmentPage.but tonSave_Click(Object
sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at IndigoControls.ImageButton.OnClick(EventArgs e)
at IndigoControls.ImageButton.PerformClick()
at IndigoControls.ImageButton.ProcessMnemonic(Char charCode)
at System.Windows.Forms.Control._ProcessMnemonic(Char charCode)
at System.Windows.Forms.ContainerControl.ProcessMnemo nic(Char
charCode)
at System.Windows.Forms.ContainerControl.ProcessDialo gChar(Char
charCode)
at System.Windows.Forms.Control.ProcessDialogChar(Cha r charCode)
at System.Windows.Forms.Control.ProcessDialogChar(Cha r charCode)
at System.Windows.Forms.Control.ProcessDialogChar(Cha r charCode)
at System.Windows.Forms.Control.ProcessDialogChar(Cha r charCode)
at System.Windows.Forms.ContainerControl.ProcessDialo gChar(Char
charCode)
at System.Windows.Forms.Control.ProcessDialogChar(Cha r charCode)
at System.Windows.Forms.Control.ProcessDialogChar(Cha r charCode)
at System.Windows.Forms.ContainerControl.ProcessDialo gChar(Char
charCode)
at System.Windows.Forms.Control.ProcessDialogChar(Cha r charCode)
at System.Windows.Forms.Control.PreProcessMessage(Mes sage& msg)
at
System.Windows.Forms.ThreadContext.System.Windows. Forms.UnsafeNativeMethods+IMsoComponent.FPreTransl ateMessage(MSG&
msg)

Jul 22 '05 #1
2 3656
Hi there,

You appear to be using a COM component in your application. Apparently the
component produces an error.
I am not sure though, tough to tell without the code.

Good luck!

--
Juan Romero
-----------------------------------------
The successful person has the habit of doing the things failures don't like
to do.
E.M. Gray
"Greg Bacchus" wrote:
Hi, I'm getting an exception that really has me stumped. It's sporadic
at best, it's only happened a handful of times.
This particular time it happened when the user pressed 'Alt-S' to save
the data that they were entering.

Following is all exception information.

Any thoughts much appreciated.

Cheers
Greg
User: *****
When: 2005-07-12T16:00:52
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: System.Windows.Forms
Site: Int32 MessageBox(System.Runtime.InteropServices.HandleRe f,
System.String, System.String, Int32)

Trace:
at System.Windows.Forms.SafeNativeMethods.MessageBox( HandleRef hWnd,
String text, String caption, Int32 type)
at System.Windows.Forms.MessageBox.ShowCore(IWin32Win dow owner,
String text, String caption, MessageBoxButtons buttons, MessageBoxIcon
icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options)
at System.Windows.Forms.MessageBox.Show(IWin32Window owner, String
text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon)
at ConsignmentUI.Process.ShowConsignment.SaveClicked( Object sender,
EventArgs e)
at ConsignmentUI.Components.Pages.ConsignmentPage.OnS aveClicked()
at
ConsignmentUI.Components.Pages.ConsignmentPage.but tonSave_Click(Object
sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at IndigoControls.ImageButton.OnClick(EventArgs e)
at IndigoControls.ImageButton.PerformClick()
at IndigoControls.ImageButton.ProcessMnemonic(Char charCode)
at System.Windows.Forms.Control._ProcessMnemonic(Char charCode)
at System.Windows.Forms.ContainerControl.ProcessMnemo nic(Char
charCode)
at System.Windows.Forms.ContainerControl.ProcessDialo gChar(Char
charCode)
at System.Windows.Forms.Control.ProcessDialogChar(Cha r charCode)
at System.Windows.Forms.Control.ProcessDialogChar(Cha r charCode)
at System.Windows.Forms.Control.ProcessDialogChar(Cha r charCode)
at System.Windows.Forms.Control.ProcessDialogChar(Cha r charCode)
at System.Windows.Forms.ContainerControl.ProcessDialo gChar(Char
charCode)
at System.Windows.Forms.Control.ProcessDialogChar(Cha r charCode)
at System.Windows.Forms.Control.ProcessDialogChar(Cha r charCode)
at System.Windows.Forms.ContainerControl.ProcessDialo gChar(Char
charCode)
at System.Windows.Forms.Control.ProcessDialogChar(Cha r charCode)
at System.Windows.Forms.Control.PreProcessMessage(Mes sage& msg)
at
System.Windows.Forms.ThreadContext.System.Windows. Forms.UnsafeNativeMethods+IMsoComponent.FPreTransl ateMessage(MSG&
msg)

Jul 22 '05 #2
Ahh... where do you see that? I am using the HTML browser control but
nowhere near this part of the program... shouldn't even be loaded
here...

Greg

Jul 22 '05 #3

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

Similar topics

3
by: Terrence | last post by:
I am doing some of the C# walkthroughs to transition from VB to C#. When I try to execute static void Main() { Aplication.Run(new Form1()) } I raise a 'System.NullReferenceException" in...
7
by: David Elliott | last post by:
I have created an application that will dynamically load other DLLs (plugins). The new plugin is a winform with an embedded IE Browser. I am wanting to have the form to run in its own thread....
2
by: fperfect13 | last post by:
Hi, I have the folowing exception Exception : System.NullReferenceException: Object reference not set to an instance of an object. 00000019 3:30:48 PM at...
3
by: Ryan Liu | last post by:
Hi there, I got a NullReferenceException when delete last row in a datagrid. I had hard time to solve since it does not occur in my own code. I put a datagrid in my inherited user control,...
2
by: Raed Sawalha | last post by:
i have a windows form(Main) with listview, when click an item in listview i open other window form (Sub) which generate the selected item from parent window in as treeview items when click any item...
2
by: Greg Bacchus | last post by:
Hi, I'm getting an exception that really has me stumped. It's sporadic at best, it's only happened a handful of times. This particular time it happened when the user pressed 'Alt-S' to save the...
3
by: Marcus Kwok | last post by:
I have been staring at this code and I cannot see what is wrong with it. I am getting a NullReferenceException when trying to pass a value struct to a method. This exception only happens in...
1
by: Paul | last post by:
Hello All, In the following code I was expecting to get a NullReferenceException, but that didn't happen. I was hoping someone could explain why. I have two classes, Form1 and Ticker. As soon...
0
by: =?Utf-8?B?TWFyY3VzIFNjaGFlZmVy?= | last post by:
Hi everybody, I'm working on my application for appr. 2 years and now suddenly I got an System.TypeInitializationException in one of my global modules. The error is thrown at the first call of a...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.