Hello,
I need to create minidumps (or the equivalent) to debug C# applications
post-mortem. I know that it is possible in C++ using minidumps.
I read some old posts where they said that for C# it is impossible to use
minidumps (because they don't have enough information) and that the only way
was to use full dumps. But I still don't know how to configure the
application (assemblies) to create this dump and how to use them for
analysis.
Any help is appreciated.
Best regrads,
Patricio. 6 5561
Patricio,
Here are a few links that should help you: http://www.codeproject.com/debug/pos...tandalone1.asp http://blogs.msdn.com/scottno/archiv...26/197757.aspx
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Patricio" <Pa******@newsgroups.nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Hello,
I need to create minidumps (or the equivalent) to debug C# applications post-mortem. I know that it is possible in C++ using minidumps.
I read some old posts where they said that for C# it is impossible to use minidumps (because they don't have enough information) and that the only way was to use full dumps. But I still don't know how to configure the application (assemblies) to create this dump and how to use them for analysis.
Any help is appreciated.
Best regrads, Patricio.
Hi Patricio,
In addition to Nicholas's comment, we also could use Stacktrace to achieve
this goal. Please refer to following article: http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemdiagnosticsstackframeclasstopic.asp
I hope the above information is helpful for you. If you have any questions,
please feel free to let me know. Thanks and have a nice day!
Best Regards,
Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
-------------------- From: "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> References: <#e**************@tk2msftngp13.phx.gbl> Subject: Re: How to create minidumps in C# Date: Sat, 21 Jan 2006 11:55:16 -0500 Lines: 35 X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Message-ID: <#O**************@tk2msftngp13.phx.gbl> Newsgroups: microsoft.public.dotnet.languages.csharp NNTP-Posting-Host: cpe-24-90-143-84.nyc.res.rr.com 24.90.143.84 Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.languages.csharp:380216 X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
Patricio,
Here are a few links that should help you:
http://www.codeproject.com/debug/pos...tandalone1.asp
http://blogs.msdn.com/scottno/archiv...26/197757.aspx
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Patricio" <Pa******@newsgroups.nospam> wrote in message news:%2****************@tk2msftngp13.phx.gbl... Hello,
I need to create minidumps (or the equivalent) to debug C# applications post-mortem. I know that it is possible in C++ using minidumps.
I read some old posts where they said that for C# it is impossible to
use minidumps (because they don't have enough information) and that the only way was to use full dumps. But I still don't know how to configure the application (assemblies) to create this dump and how to use them for analysis.
Any help is appreciated.
Best regrads, Patricio.
Thank you Nicholas and Terry for the information.
From what I read in the links it seems that I need to attach a debugger to
the running application to create the full user dumps.
In the C++ scenario it seems that the same application can implement a
handler to generate the dump, but it seems that this is not possible with
C#, isn't?
One more question: in a scenario where a unmanaged C++ application uses a
managed C++ dll which itself uses a C# dll, will a full dump generated by
the unmanaged C++ application (triggered by a C# dll exception) contain
information to debug the C# dll?
Thank you in advance for your answers,
Patricio.
""TerryFei"" <v-******@online.microsoft.com> wrote in message
news:05****************@TK2MSFTNGXA02.phx.gbl... Hi Patricio, In addition to Nicholas's comment, we also could use Stacktrace to achieve this goal. Please refer to following article: http://msdn.microsoft.com/library/de...us/cpref/html/ frlrfsystemdiagnosticsstackframeclasstopic.asp
I hope the above information is helpful for you. If you have any questions, please feel free to let me know. Thanks and have a nice day!
Best Regards,
Terry Fei [MSFT] Microsoft Community Support Get Secure! www.microsoft.com/security
--------------------From: "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> References: <#e**************@tk2msftngp13.phx.gbl> Subject: Re: How to create minidumps in C# Date: Sat, 21 Jan 2006 11:55:16 -0500 Lines: 35 X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Message-ID: <#O**************@tk2msftngp13.phx.gbl> Newsgroups: microsoft.public.dotnet.languages.csharp NNTP-Posting-Host: cpe-24-90-143-84.nyc.res.rr.com 24.90.143.84 Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.languages.csharp:38021 6 X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
Patricio,
Here are a few links that should help you:
http://www.codeproject.com/debug/pos...tandalone1.asp
http://blogs.msdn.com/scottno/archiv...26/197757.aspx
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Patricio" <Pa******@newsgroups.nospam> wrote in message news:%2****************@tk2msftngp13.phx.gbl.. . Hello,
I need to create minidumps (or the equivalent) to debug C# applications post-mortem. I know that it is possible in C++ using minidumps.
I read some old posts where they said that for C# it is impossible to use minidumps (because they don't have enough information) and that the only way was to use full dumps. But I still don't know how to configure the application (assemblies) to create this dump and how to use them for analysis.
Any help is appreciated.
Best regrads, Patricio.
Patricio wrote: Thank you Nicholas and Terry for the information.
From what I read in the links it seems that I need to attach a debugger to the running application to create the full user dumps.
You can also use userdump.exe or Dr. Watson to create dumps. userdump
works good from an "unhandled exception handler". In the C++ scenario it seems that the same application can implement a handler to generate the dump, but it seems that this is not possible with C#, isn't?
It is, you can hook events for that:
Application.ThreadException
AppDomain.UnhandledException One more question: in a scenario where a unmanaged C++ application uses a managed C++ dll which itself uses a C# dll, will a full dump generated by the unmanaged C++ application (triggered by a C# dll exception) contain information to debug the C# dll?
It should be accessible via SOS. Thank you in advance for your answers, Patricio.
HTH,
Andy
--
To email me directly, please remove the *NO*SPAM* parts below:
*NO*SPAM*xmen40@*NO*SPAM*gmx.net
Thank you for the information Andreas. Now I have several options to
handle my situation.
Best regards,
Patricio.
"Andreas Mueller" <me@privacy.net> wrote in message
news:43*************@individual.net... Patricio wrote: Thank you Nicholas and Terry for the information.
From what I read in the links it seems that I need to attach a debugger to the running application to create the full user dumps.
You can also use userdump.exe or Dr. Watson to create dumps. userdump works good from an "unhandled exception handler". In the C++ scenario it seems that the same application can implement a handler to generate the dump, but it seems that this is not possible with C#, isn't?
It is, you can hook events for that: Application.ThreadException AppDomain.UnhandledException
One more question: in a scenario where a unmanaged C++ application uses a managed C++ dll which itself uses a C# dll, will a full dump generated by the unmanaged C++ application (triggered by a C# dll exception) contain information to debug the C# dll?
It should be accessible via SOS.
Thank you in advance for your answers, Patricio.
HTH, Andy -- To email me directly, please remove the *NO*SPAM* parts below: *NO*SPAM*xmen40@*NO*SPAM*gmx.net
Hi Patrico,,
I am glad to know that the problem has been resolved now.Thanks for
participating the community!
Best Regards,
Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
-------------------- From: "Patricio" <Pa******@newsgroups.nospam> References: <#e**************@tk2msftngp13.phx.gbl>
<#O**************@tk2msftngp13.phx.gbl>
<05**************@TK2MSFTNGXA02.phx.gbl>
<eQ**************@TK2MSFTNGP11.phx.gbl> <43*************@individual.net>Subject: Re: How to create minidumps in C# Date: Mon, 23 Jan 2006 16:31:31 -0500 Lines: 44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Message-ID: <Ov**************@TK2MSFTNGP15.phx.gbl> Newsgroups: microsoft.public.dotnet.languages.csharp NNTP-Posting-Host: 205.152.247.15 Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP15.phx.gbl Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.languages.csharp:380741 X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
Thank you for the information Andreas. Now I have several options to handle my situation.
Best regards, Patricio.
"Andreas Mueller" <me@privacy.net> wrote in message news:43*************@individual.net... Patricio wrote: Thank you Nicholas and Terry for the information.
From what I read in the links it seems that I need to attach a debugger to the running application to create the full user dumps.
You can also use userdump.exe or Dr. Watson to create dumps. userdump works good from an "unhandled exception handler". In the C++ scenario it seems that the same application can implement a handler to generate the dump, but it seems that this is not possible
with C#, isn't?
It is, you can hook events for that: Application.ThreadException AppDomain.UnhandledException
One more question: in a scenario where a unmanaged C++ application uses
a managed C++ dll which itself uses a C# dll, will a full dump generated
by the unmanaged C++ application (triggered by a C# dll exception) contain information to debug the C# dll?
It should be accessible via SOS.
Thank you in advance for your answers, Patricio.
HTH, Andy -- To email me directly, please remove the *NO*SPAM* parts below: *NO*SPAM*xmen40@*NO*SPAM*gmx.net This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: dog |
last post by:
I've seen plenty of articles on this topic but none of them have been
able to solve my problem.
I am working with an Access 97 database on an NT4.0 machine, which has
many Access reports.
I...
|
by: I_AM_DON_AND_YOU? |
last post by:
There is one more problem I am facing but didn't get the solution. In my
Setup Program I am not been able to create 2 things (when the program is
intalled on the client machine ) : (1) create...
|
by: Zack Sessions |
last post by:
Has anyone tried to create a SQL7 view using the CREATE VIEW command
and ADO.NET? If so, is there a trick in trapping a SQL error when
trying to create the view? I have a VB.NET app that, amoung...
|
by: Peter |
last post by:
Hello£¬everyone,
My program will collect a testing machine's data ,save the data and deal
with the data everyday. I want to use vb.net to create database, add and
delete tables or modify the...
|
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...
|
by: Steven Bethard |
last post by:
The PEP below should be mostly self explanatory. I'll try to keep the
most updated versions available at:
http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
|
by: Steven Bethard |
last post by:
I've updated the PEP based on a number of comments on comp.lang.python.
The most updated versions are still at:
http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
|
by: Michael |
last post by:
Hello,
I've created an ASP web page where users in our organization can create
Active Directory computer accounts.
The web page is running on a Server 2003 SP1 IIS 6 installation. The...
|
by: barb |
last post by:
So that the world at large benefits from our efforts, here is one fully
documented way to use Windows Irfanview freeware to create thumbnail web
galleries (http://www.irfanview.com).
STEP 1:...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
| |