|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
StackTraceException on program starti'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...
;) Show quoteHide quote "NetRacer" <netra***@netspeedway.net> schrieb im Newsbeitrag news:d2bgos$i8l$01$1@news.t-online.com... > 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 > > 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 Show quoteHide quote "Cor Ligthert" <notmyfirstn***@planet.nl> schrieb im Newsbeitrag news:u8pHSBHNFHA.2604@TK2MSFTNGP10.phx.gbl... > 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 >
64 HI/LO DWORD extraction vb.net
Excel ADO question Using a variable to specify the name of a control Datalist/datatable sorting Cannot Get MenuItem's name[Notsolved] Formatting timespan objects how to use CurrentRowIndex for datagrid control ? SQL-question VB.NET (ASP) Can't convert Dates...help! memory stream XML and unicode problem |
|||||||||||||||||||||||