Application Crashed!
-
I am getting this kind of error,in my application i cant get it debugging. it is happening in running. Can U please tell me the reason here i have exception log. -------- Attempted to read or write protected memory. This is often an indication that other memory is corrupt. :: System.Windows.Forms :: at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at ItvC.Program.Main() in C:\ItvCNew180508\ItvC\Program.cs:line 29
-
I am getting this kind of error,in my application i cant get it debugging. it is happening in running. Can U please tell me the reason here i have exception log. -------- Attempted to read or write protected memory. This is often an indication that other memory is corrupt. :: System.Windows.Forms :: at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at ItvC.Program.Main() in C:\ItvCNew180508\ItvC\Program.cs:line 29
Do you do anything with unmanaged components in your code ?
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
I am getting this kind of error,in my application i cant get it debugging. it is happening in running. Can U please tell me the reason here i have exception log. -------- Attempted to read or write protected memory. This is often an indication that other memory is corrupt. :: System.Windows.Forms :: at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at ItvC.Program.Main() in C:\ItvCNew180508\ItvC\Program.cs:line 29
are you using any 3rd party SDK's or .Net wrappers?
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
-
Do you do anything with unmanaged components in your code ?
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
yes i haved used ocx,dll and activeX controls in my application. Any good practice in Assembly.cs file also??
-
yes i haved used ocx,dll and activeX controls in my application. Any good practice in Assembly.cs file also??
One of those is what's crashing, so you need to look at your code that calls these.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
I am getting this kind of error,in my application i cant get it debugging. it is happening in running. Can U please tell me the reason here i have exception log. -------- Attempted to read or write protected memory. This is often an indication that other memory is corrupt. :: System.Windows.Forms :: at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at ItvC.Program.Main() in C:\ItvCNew180508\ItvC\Program.cs:line 29
If your application is crashing and you want to solve the problem no matter what, I would suggest you throw messageboxes all over the beginning of your code. When a messagebox does not show when it is suppose to then that is where the problem is occuring. I am almost positive that most programmers would consider this a messy solution and would only use it as a last resort, it should be able to assist you.
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios Discounted or Free Software for Students: DreamSpark - downloads.channel8.msdn.com MSDN Academic Alliance - www.msdnaa.com