473,695 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Generating dump files

Hello,
Is it possible to generate dump file at some execution point in managed
application? I would like to be able to gather information about
exceptions and their context from users running my app - if I handle
some relevant exception, besides informing user of failure, I'd like to
enable him to send me dump file in order to analyze what actually went
wrong and perform some maintenance/debugging on my own. It would be
also nice if I could generate dump post-mortem - when application
crashes due to unhandleld exception. Do you have any ideas or
guidelines concerning this issue?

Apr 20 '06 #1
4 1709
Simply create a text file using a StreamWriter object and call it's
Writeline() mthod using the trapped exception:

<object>.Writel ine(<exception> .ToString());

The ToString() method of a class derived from System.Exceptio n, by default
includes a stack trace.

If the executable is a 'debug' build, the stack trace also includes the
source file and line number.

Any other information you wish to include in the 'dump' is purely up to you.

"Marcin Rzeznicki" <ma************ **@gmail.com> wrote in message
news:11******** **************@ j33g2000cwa.goo glegroups.com.. .
Hello,
Is it possible to generate dump file at some execution point in managed
application? I would like to be able to gather information about
exceptions and their context from users running my app - if I handle
some relevant exception, besides informing user of failure, I'd like to
enable him to send me dump file in order to analyze what actually went
wrong and perform some maintenance/debugging on my own. It would be
also nice if I could generate dump post-mortem - when application
crashes due to unhandleld exception. Do you have any ideas or
guidelines concerning this issue?

Apr 21 '06 #2
Sounds like you want something more hardcore than ex.ToString()

An article on how to get memory dumps from asp.net that really helped me is:
http://blogs.msdn.com/tess/archive/2...11/511773.aspx
(this is a fantastic blog by the way)

Other useful resources:
Mini Dump Snapshots and the New SOS
http://msdn.microsoft.com/msdnmag/is.../03/Bugslayer/

Production Debugging for .NET Framework Applications

http://msdn.microsoft.com/library/de...ml/DBGch01.asp
Hope that helps

"Marcin Rzeznicki" wrote:
Hello,
Is it possible to generate dump file at some execution point in managed
application? I would like to be able to gather information about
exceptions and their context from users running my app - if I handle
some relevant exception, besides informing user of failure, I'd like to
enable him to send me dump file in order to analyze what actually went
wrong and perform some maintenance/debugging on my own. It would be
also nice if I could generate dump post-mortem - when application
crashes due to unhandleld exception. Do you have any ideas or
guidelines concerning this issue?

Apr 21 '06 #3

Chris Mohan napisal(a):
Sounds like you want something more hardcore than ex.ToString()

An article on how to get memory dumps from asp.net that really helped me is:
http://blogs.msdn.com/tess/archive/2...11/511773.aspx
(this is a fantastic blog by the way)

Other useful resources:
Mini Dump Snapshots and the New SOS
http://msdn.microsoft.com/msdnmag/is.../03/Bugslayer/

Production Debugging for .NET Framework Applications

http://msdn.microsoft.com/library/de...ml/DBGch01.asp


Hello,
Thank you very much for help - I'm going to experiment with tools
described in these links.

Apr 21 '06 #4

Stephany Young napisal(a):
Simply create a text file using a StreamWriter object and call it's
Writeline() mthod using the trapped exception:

<object>.Writel ine(<exception> .ToString());

The ToString() method of a class derived from System.Exceptio n, by default
includes a stack trace.

If the executable is a 'debug' build, the stack trace also includes the
source file and line number.

Any other information you wish to include in the 'dump' is purely up to you.


Hello,
Sure it's up to me, but using this oversimplified technique I won't be
able to check actual arguments of method causing exception, examine
objects on heap and so on. What I need is something acting like Mozilla
Talkback, which activates itself when application crashes and dumps
process memory sending it to developers for further examination.

Apr 21 '06 #5

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

Similar topics

0
2038
by: Guenter Walser | last post by:
Hello, When using the codeline: pickle.dump(self, file, pickle.HIGHEST_PROTOCOL) my program runs perfectly fine: --------------------------- Testprotocol -----------------------------
0
1901
by: Dan Gass | last post by:
The difflib.py module and the diff.py tools script in Python 2.4 alpha 3 now support generating side by side (with intra line differences) in HTML format. I have found this useful for performing build release comparisons (I use a script to generate a main page showing all the files that were changed in a build with hyperlinks to side by side differences for each of those files). I also find it useful for generating HTML test reports to...
2
5537
by: Jason Gyetko | last post by:
I have a bunch of old *.000 files in the \SQLLIB\DB2 directory. Those are just dump files that I can get rid of with no effect to the system, right?
9
3259
by: Microsoft News Server | last post by:
Hi, I am currently having a problem with random, intermittent lock ups in my ASP.net application on our production server (99% CPU usage by 3 threads, indefinately). I currently use IIS Debug Tools to do a memory dump of the app when the lock up occurs, however the stack information is not very useful. I have just put a new build of our system onto production, and this build is a "Debug" build as opposed to a "Release" build. I am...
2
5783
by: Auddog | last post by:
Hello all, I'm fairly new to access database(s), but I work a lot with mysql. I was wondering if there is a script file out there that I can get a hold of that will create a dump file. I need to be able to backup this data nightly and would like it if the script file could name the file with that days date (so each dump file would be unique). I thank you for any help that you might be able to provide. A
3
4068
by: Noman Ali | last post by:
Hi, It seems that ASP .NET 2.0 does not support XML documentation feature. Is there any way to do this? I serached alot and only find this solution but it didnot works for C#. Here it is. http://www.carljohansen.co.uk/codelib/copyappcodexml/
2
4435
by: chenert | last post by:
Hi all, im beginner to restoring dump files and postgresql as well so hope u could bear with me.! :D i have these dump files and i've been working on restoring everything in it. i've tried this command : psql -U postgres dbname < data.dump : the tables were restored wihout any data inside it. does anyone know how I could fix this? :D
7
8144
by: Nathan Sokalski | last post by:
I am an ASP.NET developer, and Visual Studio 2005 seems to have stopped declaring the controls that I add in the *.designer.vb files, therefore forcing me to manually add them before I can use them in code that I write in the *.aspx.vb and *.ascx.vb files. Why is it no longer automatically declaring the controls? Is there a way to manually force Visual Studio 2005 to regenerate these files? Is there a setting somewhere that could have...
1
2202
by: Nathan Sokalski | last post by:
Visual Studio 2005 recently stopped generating the *.designer.vb files for my *.aspx and *.ascx files. I am using Service Pack 1, and do not believe I did anything differently than normal prior to this happening. Is there anything that could have caused this? Does anyone know of a way to fix it? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
0
8565
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8977
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8839
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8822
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7656
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4339
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2997
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2269
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1971
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.