473,326 Members | 2,108 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,326 software developers and data experts.

Random crashes with a .NET 2.0 app

I've recently upgraded my .NET 1.1 application to .NET 2.0 and,
especially under Windows Vista, my users are experiencing sudden
shutdowns. The application just quits or the standard .NET 2.0 error
message is shown (the one saying that the application has performed an
invalid operation and will be shut down).

My believe is that this may be due to background threads launching
exceptions.

In the Main() procedure I'm trapping both exceptions from the main
thread and all the other thread of the domain using:

Application.ThreadException +=new
System.Threading.ThreadExceptionEventHandler(Appli cation_ThreadException);

AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException);

Why isn't my crashreport (which I invoke when I detect an unhandled
exception) invoked on some situations and the application just quits?

Are there any reasons why this problem seems to happen more frequently
on Vista?
I also had some reports from a couple of users of immediate crashing
on Windows Vista x64.

Thanks.
Andrea
Jul 24 '07 #1
3 1155
Hi Andrea,

Is this issue the same as the one you posted here:

http://msdn.microsoft.com/newsgroups...icrosoft.publi
c.dotnet.general&mid=5f593e92-2206-4b32-86ef-cee951b3067f&p=1

If it's the same issue, I'm wondering if you've seen my colleague Jeffrey's
reply there. Let me know if you intend to work in this post or the previous
one. Thanks.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 24 '07 #2
Thanks Walter.
I prefer to continue on this post.
I've done as suggested and in theory I should be able to catch all
excecptions that are thrown by any thread. Is that right? What
happens, though, is that some customers are getting the standard
Windows error message.

How can I be sure to be able to intercept all the error message to
display the user a message and log the information about the error?

Are there any specific issue of the .NET 2.0 with the BeginInvoke (I'm
using it it invoke an asynchronous execution without calling the
EndInvoke). Can this be the problem?

Thanks.
Andrea

On Tue, 24 Jul 2007 09:36:15 GMT, wa****@online.microsoft.com (Walter
Wang [MSFT]) wrote:
>Hi Andrea,

Is this issue the same as the one you posted here:

http://msdn.microsoft.com/newsgroups...icrosoft.publi
c.dotnet.general&mid=5f593e92-2206-4b32-86ef-cee951b3067f&p=1

If it's the same issue, I'm wondering if you've seen my colleague Jeffrey's
reply there. Let me know if you intend to work in this post or the previous
one. Thanks.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

================================================= =
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================= =

This posting is provided "AS IS" with no warranties, and confers no rights.
Jul 25 '07 #3
Hi Andrea,

I'm writing to check the status of this post. Please feel free to let me
know if there's anything else unclear. Thanks.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 31 '07 #4

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

Similar topics

7
by: Steve D. | last post by:
I recently installed VS.NET 2003 After opening a project and leaving it open, after a certain period of time it crashes. It only does this when a project is open. The project that I've tried...
5
by: Rob Ristroph | last post by:
Hi, It's pretty unhelpful to post "I have a huge piece of code that crashes in strange places, what's the problem?" but that's basically my problem and I really am at my wit's end. The piece...
9
by: greeningster | last post by:
I have written an application in Visual C++ for a customer but it seems to crash randomly. Could anyone give me any help on how I could track this down ? Also, there appears there might be...
8
by: Gary Joy | last post by:
I really am banging my head with this one... I have a regular unmanaged C++ application that is using mixed DLLs to (amongst other things) call a C# back-end (which is using ADO .NET). I am...
8
by: Lars-Erik Aabech | last post by:
Hi! We've got an ASP.NET application that runs swell on development PC's and one live production server. Another prod. server though crashes a couple of times a week. Either something that...
4
by: Jared Kitcher via .NET 247 | last post by:
I am working on a .Net project and our application randomlycrashes with no exception being thrown. The application justdisappears, like someone would have clicked the exit button. This occurs both...
0
by: Mathias Waack | last post by:
Hi all, I've embedded python into an older application and created some extensions to interact with the old data structures. Everythings works like a charm - beside a simple "import random"....
3
by: hande | last post by:
Hi, I wrote a program with two threads playing a number guessing game. one thread pick a number the other try to guess it. Also first thread say try a lower or higher number. but my program crashes...
1
by: Pucca | last post by:
I'm getting the follow error message randomly and then my application crashes. How can I locate the bug code and how can I fix this? Managed Debugging Assistant 'DisconnectedContext' has...
3
by: John Fairhurst | last post by:
Hi, The following code should select the specified number of records randomly from the database <% .... query = "SELECT FROM " Set RS = Server.CreateObject("ADODB.Recordset")
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.