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

Error handle and just-in-time debugger

Hello there,

In my Windows application I have:

Application.ThreadException += new
System.Threading.ThreadExceptionEventHandler(error .GlobalErrorHandler);

All was working fine until today.
Today, when error occurs in a compiled program, Windows calls
Just-in-time debugger popup window.
When running in Debug mode VS stops on error with Break/Continue dialog
box.

Any idea why ThreadException procedure does not fire?

Thanks

MH
Oct 27 '05 #1
2 1285
Just cannot believe this s**t.

The problem started when I added in my ErrorHandler reference to
e.Exception.InnerException.StackTrace;

public void GlobalErrorHandler(object sender,
System.Threading.ThreadExceptionEventArgs e)

When I remove the reference to StackTrace the compiled program works as
it should but it still breaks when in Debug mode.

Strange s**t.

MH
Oct 27 '05 #2
I think I should examine my brain.
My error handler is not working as InnerException is null
MH
Oct 27 '05 #3

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

Similar topics

5
by: Csaba Gabor | last post by:
The usual example shown for trapping for failure of COM instantiation (Windows systems) is something like (see for example http://at2.php.net/manual/en/class.com.php): $word = new...
4
by: Altramagnus | last post by:
I have 30 - 40 type of different window. For each type I need about 20 instances of the window. When I try to create them, I get "Error creating window handle" My guess is there is a maximum...
3
by: Ed Robichaud | last post by:
I'm temporarily stumped on how to handle/suppress an error (2501) if a user cancels sending an email. I'm using DoCmd.SendObject to trigger an Outlook send window, which works OK, but if the msg...
1
by: Abby | last post by:
Hi ... when I run my program, it produces error. I would like to know how to handle this error message. I don't want to see it on screen. Any way to just ignore it? Please let me know. Thanks a...
0
by: Mike Perrenoud | last post by:
Hey group, When using the Show method of an MDI child form we receive an error "Error creating window handle." It just started too because everything was working fine. Any ideas would be...
4
by: trint | last post by:
Here's the code: bool GetJobs(HANDLE hPrinter, /* Handle to the printer. */ JOB_INFO_2 **ppJobInfo, /* Pointer to be filled. */ int *pcJobs, /* Count of jobs filled. */...
0
by: Pixie | last post by:
We are successfully getting a handle to a drive using createfile then using that handle to query the change journal using DeviceIOControl with the paramter FSCTL_QUERY_USN_DATA. However when we try...
6
by: happiness4all | last post by:
i am using multithreaded server and getting this error when several clients communicate with server at the same instant. otherwise there is no problem.. WSAENOTSOCK (10038) its description is: The...
5
by: Neil | last post by:
struct __alloca { unsigned int nsize; int nline; char szFile; char **messages; int trace_size ; #ifdef OS_WINDOWS unsigned long m_size; _CRT_ALLOC_HOOK m_poldhook;
94
by: Chad | last post by:
On to top of page 163 in the book "The C Programming Langauge" by K & R, they have the following: char *strdup(char *s) { char *p; p=(char *)malloc(strlen(s)+1); if( p != NULL) strcpy(p,s):...
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...
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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)...
0
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...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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: 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

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.