Click here to Skip to main content
15,889,876 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have C# application, which is sometime crashes with unhandled exception error.
I can not duplicate this error. Event viewer shows error as following at application level.

CSS
Faulting application name: Master Trade.exe, version: 1.0.0.0, time stamp: 0x537582f8
Faulting module name: KERNELBASE.dll, version: 6.1.7601.18229, time stamp: 0x51fb1116
Exception code: 0x40000015
Fault offset: 0x0000c41f
Faulting process id: 0x13f0
Faulting application start time: 0x01cf7108f0937abe
Faulting application path: C:\Users\Administrator\Desktop\Debug\Master Trade.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: c8e91d94-dcfe-11e3-8822-00259068fb31


I have used try catch statement on every part of my code to catch this error. If it is known error without try catch, visual studio debugger should have pop up this error with details & location.

What should I do to go to the root cause of this error? Please let me know.

Thanks
Posted
Comments
ZurdoDev 16-May-14 16:16pm    
That's pretty generic. Not sure anyone can tell you how to fix it.

1 solution

Run it in the debugger, but first, go to the "Debug" menu.
Click on "Exceptions..." and in the dialog that results make sure there is a tick in every box: "Thrown" and "Unhandled" (if you have both columns, you may not if you are running a 64 bit app)
Press OK.
Now try running your app - it should break on every exception which will let you look at the stack trace and hopefully work out what code you wrote that caused it!
 
Share this answer
 
Comments
Nilesh bhope 16-May-14 11:51am    
Hi,

I have checked for all thrown & user unhandled exception in Visual Studio.
Now waiting for exception to be thrown in my program.
[no name] 17-May-14 10:22am    
Are you still waiting for the exception?
Nilesh bhope 17-May-14 11:08am    
Yes.
[no name] 17-May-14 11:19am    
I kindly ask you to inform the community when the exception arrived...and pls inform the community also about the error text. Regards
Nilesh bhope 11-Aug-14 7:14am    
Sorry for delayed response. Issue was due to attempted read write memory issue. It did not showed in exception though. But it is resolved now. Please mark this question as answered.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900