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

How to track down source of crash + Event log error?

Hello,

I built a client application using C# .NET 2.0. It runs fine at a number
of customer sites. One customer is reporting several users getting
problems. At start up it crashes with a dialog "myapp has encountered a
problem and needs to close..."

Checking in the event log we see and event with the following information:

Source: .NET Runtime 2.0 Error
Event ID: 5000
Type: Error
Description:
EventType clr20r3 P1 myapp.exe, P2 1.0.0.0, P3 48ea486b, P4 system.security,
P5 2.0.0.0, P6 4333ae39, P7 c2, P8 e2, P9 udta330idobh2roz2ayvlcelag5agtls,
P10 NUL.

Now, my application use an unmanaged COM object and it also access the
Windows Registry (HKLU) and also uses a web services interface.

Based on some searches I'm thinking this might be some kind of security
issue but I'm not sure where or what to check. Any input would be helpful.
I'm not that familiar with Windows Security so if you have any ideas it
would be helpful if you could describe the procedures I could follow to try
to address this or at least better determine what is causing the problem.
It is not really an option to run under a debugger at the customer site.

Thanks!
--
Grant Schenck
Oct 8 '08 #1
1 3972
Grant Schenck wrote:
I built a client application using C# .NET 2.0. It runs fine at a number
of customer sites. One customer is reporting several users getting
problems. At start up it crashes with a dialog "myapp has encountered a
problem and needs to close..."

Checking in the event log we see and event with the following information:

Source: .NET Runtime 2.0 Error
Event ID: 5000
Type: Error
Description:
EventType clr20r3 P1 myapp.exe, P2 1.0.0.0, P3 48ea486b, P4 system.security,
P5 2.0.0.0, P6 4333ae39, P7 c2, P8 e2, P9 udta330idobh2roz2ayvlcelag5agtls,
P10 NUL.

Now, my application use an unmanaged COM object and it also access the
Windows Registry (HKLU) and also uses a web services interface.
Good, at least it could be anything then. :-)

Attach an event handler to AppDomain.UnhandledException and have it log to
somewhere convenient. If there's an actual managed exception to be had,
it'll be there. If the event handler doesn't trigger you've got a more
interesting problem that will require more effort, but try the fully managed
solution first. You always, always, *always* want an exception handler on
the outer level of your code if nothing else. The moment you transition from
managed code to unmanaged code you're making things a lot more complicated.

If you got no event or you can't change the application, you'll have to ask
the customer to supply more information. You don't have to ask them to debug
the thing, but you do need more.

If it really is a "dumb" access error, one way of finding the problem is to
have the customer run Process Monitor
(http://technet.microsoft.com/sysinternals/bb896645) and looking for ACCESS
DENIED errors. Process Monitor can log almost anything your application does
to a file you can analyze later.

There are tools that can generate debugger dumps for you to use on your
local debugger. The easiest one to setup is userdump.exe, described here:
http://support.microsoft.com/kb/241215 The sophisticated alternative to
that is ADPlus (http://support.microsoft.com/kb/286350), but it requires
installing the Debugging Tools for Windows, which is a bit much.

--
J.
Oct 8 '08 #2

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

Similar topics

2
by: kmnotes04 | last post by:
Is it possible to link one drop-down box to another? For example, if a name is chosen from a drop-down list, can another drop-down list then automatically display the person's office as a result of...
9
by: MLH | last post by:
Trouble is, it doesn't happen every time. Yesterday, for example, it happened only once and not again afterward. Some days ago, a similar situation. Today, well - I tried 7 times straight to open...
0
by: Dmitry Polyakovsky | last post by:
We are not sure exactly what is causing it and any suggestions will be greatly appreciated. The largest reports we are trying to pull up have about 100,000 rows with about 10 columns (mostly int,...
6
by: Ken | last post by:
When running a program in the debugger, what would cause it to crash without any error messages? I get "The program has exited with code 0 (0x0)". The program is a MDI app with threading for...
27
by: Frederick Gotham | last post by:
I thought it might be interesting to share experiences of tracking down a subtle or mysterious bug. I myself haven't much experience with tracking down bugs, but there's one in particular which...
5
by: Mahmoud Al-Qudsi | last post by:
I have an application that builds and runs just fine on my PC. It's pure C#, no P/Invoke, no Win requirements or anything. I built the app, stuck the dependcies in the same DIR, and copied it to...
3
by: PJ6 | last post by:
What's the best way to, in the general case, track changes to an object's public fields and properties? In a lot of applicatoins I've seen bahavior consistant with simple periodic checking from a...
23
by: raylopez99 | last post by:
A quick sanity check, and I think I am correct, but just to make sure: if you have a bunch of objects that are very much like one another you can uniquely track them simply by using an ArrayList...
2
by: Grant Schenck | last post by:
Hello, I built a client application using C# .NET 2.0. It runs fine at a number of customer sites. One customer is reporting several users getting problems. At start up it crashes with a...
3
by: dirksza2009 | last post by:
Hi, I've made a multi user (4 end users) database in Access 2000. I've made data tables, reference tables etc which sits on a shared drive and I've made individual front ends for the end users...
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...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: 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.