StackTraceException on program start

  • Thread starter Thread starter NetRacer
  • Start date Start date
N

NetRacer

hi all,

i'm currently building an order management software based on a mysql
database (using mysql.net-connector 1.0.4) for our company. since i'm still
at the beginning with the application, it has 4 forms and is linked to a own
custom usercontrol (a combobox like control, but without dropping down a
list box, it drops down a datagrid).

when i'm trying to start the application it compiles correctly and when it's
painting the main window on the screen a JIT-error window appears with a
StackTraceException. if i click "continue" i can use my app without any
problems.

in my "Function Main()" i try/catched the "Application.Run(mainForm)"
clause, but it doesn't catch this error. i also enabled JIT-debugging in my
machine.config file, but i'm not able to catch and trace this error, yet.
if i'm running the app step-by-step, the error occours on the "End Sub"
clause of my Form_Load Event.

can anyone help me?
thanks a while...

bye
netracer
 
of course the error is a StackOverflowException... the other is garbage...
;)
 
NetRacer,

Which means an endless loop, what can be is that you call in an event the
same event. (Indirect by instance when you change the index of a combobox
in a indexchangeevent than it will be called again and again and again). My
solution is than to remove the eventhandler as first statement and add it
again as last.

I hope this helps,

Cor
 
Yeah you were right. But why can't i catch this error like others?
I had to use Windbg with the SOS library to trace the error back.

In my custom usercontrol i wrote "Me.OnEnter(e)" instead of
"MyBase.OnEnter(e)" in the overwritten method, so it became recursive...

however thx a lot,
netracer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top