Re: How can I solve this error? I need help!

From: Jochen Kalmbach (nospam-Jochen.Kalmbach_at_holzma.de)
Date: 04/03/04


Date: Sat, 03 Apr 2004 11:06:59 -0800

Jet Leung wrote:

> When I debug my program and it return me an error call " have not handle
> ¡°System.StackOverflowException¡± appear in system.windows.forms.dll "
> How can I solve this problem??

Enable in your VS2002/2002 under "Debug | Excaptions..."
"CLR-Exceptions: Halt on all error"

Then you see where the exception occur and you can walk the callstack to
find the source of the problem.

Maybe you are setting some property inside an even-handler for this
property (common mistake)
For example:

private void textBox1_OnTextChanged(object sender, EventArgs e)
{
  textBox1.Text += "_";
}

-- 
Greetings
  Jochen
 
   Do you need a memory-leak finder ?
   http://www.codeproject.com/tools/leakfinder.asp
   
   Do you need daily reports from your server?
   http://sourceforge.net/projects/srvreport/


Relevant Pages

  • Re: Try Finally...
    ... Some of the "keywords" are not hard coded. ... Writing procedures named Halt, Break ... or Exit can result in strange effects, but sometimes it's nice to override the ... This exception can be caught at the main ...
    (comp.lang.pascal.delphi.misc)
  • Re: how to let user instll: System_SR_de.cab
    ... exception on a worker thread you could not catch. ... > application could HALT in any way at THIS point, ... > It makes sense to catch errors and give clear messages to the customer ... > searching a error a bit hard because as a developer you cannot always ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: USBFN => data abort in Windows Embedded CE6.0
    ... If you build your image with the debugger enabled it should halt the CPU when the exception occurs and allow you too see more information about what is happening. ... Subtract the load address from the PC then use that number to offset into the disassembly dump. ...
    (microsoft.public.windowsce.embedded)