Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Would you like to save a dumpfile?
 

Would you like to save a dumpfile?

This is probably nothing.  I'd just like to hear from others with this experience.  

I have been writing and deploying ClickOnce Winforms programs with VS2005 for over 2 years at this company and this is the first time this has happened.  A user has reported that a program crashed with the message: The program[<program name>] caused a problem and is going to close.  Would you like to save a dump file?

The user admitted to running the program for a while and this program does do a lot of instantiating of custom control objects.  I'm guessing that the problem might be due to failure to properly dispose of some of the objects.  

Suggestions?
B. Chernick  Tuesday, October 06, 2009 2:34 PM
It's definitely not a ClickOnce issue. Once your application is running, ClickOnce is no longer involved.

I'd look at the dump file and see if it's any help. Your custom control objects -- are they all displayed on Windows Forms? Check the code behind and make sure it's disposing of them as needed; it should be. 

RobinDotNet
Click here to visit my ClickOnce blog!
Microsoft MVP, Client App Dev
RobinDotNet  Tuesday, October 06, 2009 8:44 PM
Thanks. I have added a few tweaks to the program which might help in that direction. 

As for the dump file, I seem to be out of luck.  My installation of Visual Studio 2005 Team Edition does not seem to want to open the dump file.  I have little experience with them anyway.
B. Chernick  Tuesday, October 06, 2009 10:56 PM
Are you subscribing to the unhandled exception handler event, so if an exception is thrown that you're not catching, it tells you and shuts down the application? This also might help.  (Been there, done that.)

RobinDotNet
Click here to visit my ClickOnce blog!
Microsoft MVP, Client App Dev
RobinDotNet  Tuesday, October 06, 2009 11:20 PM

Hi B. Chernick,

I have met a similar issue before. I do not think it is the same as yours, but it might provide you some ideas.

A program is deployed to a server machine of my customer. The program is a service and would run every day. At certain time, the program would write some logs in a log file. After the program is running for 2 years, the log file become very large and the disk does not have enough space to store it. So the program often thrown some errors and the service stops automatically. At last, the developers modify the program and have it clear the log file when its size become too big.

Regards,
Aland Li  


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  20 hours 7 minutes ago

You can use google to search for other answers

Custom Search

More Threads

• Upgrade Install Failing from 1.1 to 2.0
• Deplying an ActiveX control using setup and deployment?
• Windows XP Schedule
• Trouble with MSI install
• ClickOnce File Association
• CAB/ActiveX/MSI/Update: File location
• General ClickOnce Deployment Question
• Click Once Uninstall Older Version
• What is the correct way to do impersonation in a click-once deployed app?
• ClickOnce deployment failing after VS2008 SP1 and .NET 3.5 SP1 upgrades