473,320 Members | 1,839 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,320 software developers and data experts.

Create a minidump of managed application

Hi,
I need to create a minidump or a fulldump in C# whenever my managed
application hangs or crashes. I know we can do this manually by using
Mdbg / ADplus etc.. But is it possible to do this programatically from
within the application itself.

thanks,
Satya.

Mar 16 '06 #1
2 4962
Satya,

When you catch the exception you can use the properties of the exception
object returned to get a dump of the stack using the following generic code.

try
{
// do something
}
catch(Exception e)
{
MessageBox.Show(e.StackTrace);
}

Hope this helps
Regards
Scott Blood
C# Developer

"Satya" <sa*********@gmail.com> wrote in message
news:11*********************@u72g2000cwu.googlegro ups.com...
Hi,
I need to create a minidump or a fulldump in C# whenever my managed
application hangs or crashes. I know we can do this manually by using
Mdbg / ADplus etc.. But is it possible to do this programatically from
within the application itself.

thanks,
Satya.

Mar 16 '06 #2
I need to create a minidump or a fulldump in C# whenever my managed
application hangs or crashes. I know we can do this manually by using
Mdbg / ADplus etc.. But is it possible to do this programatically from
within the application itself.


See if this can help:
http://www.debuginfo.com/tools/clrdump.html

Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]



Mar 16 '06 #3

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

Similar topics

4
by: Daylor | last post by:
in win32 process , when u create new process,u have new main thread. i know,appDomain r logical procces,that exists in 1 win32 process. the q: is there way to create second appDomain (the...
0
by: Patrick Matusz | last post by:
How can I create from VB a minidump of my application at runtime for the WinDbg Application from MS? We need this because our application breaks sometime at any state and the stacktrace only shows...
2
by: Jochen Kalmbach | last post by:
Hello, I just have a small question about crash-dumps for C#-apps: In "normal" unmanaged apps I can use "MiniDumpWriteDump" to write a mini- dump if an exception occurs (via....
1
by: Jochen Kalmbach | last post by:
Hello, I just have a small question about crash-dumps for C#-apps: In "normal" unmanaged apps I can use "MiniDumpWriteDump" to write a mini- dump if an exception occurs (via....
0
by: Mr. Programmer | last post by:
I opened the minidump file. I right-click on the solution and choose Debug/Start new Instance and it says that "myProgram.exe does not contain debugging information (No matching binary found). ...
3
by: Droopy | last post by:
Hi, I wrote a C# application that seems to run quite well in our room. Now, it is also running in another room and it crashes from time to time. There is the following error in the LogEvent : ...
5
by: Chris Stankevitz | last post by:
My app reliably dies after a long time. I would like to dump core before it dies, and use that core as a starting point in debugging to save me from having to spend so much time waiting. Is...
3
by: Smokey Grindel | last post by:
Is there anyway to create a minidump of the current application executing in ..NET?
6
by: Michael Tissington | last post by:
Using Visual Studio 2008 can someone point me to an example to create a cgi web service in C# ? Thanks.
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.