Code crashing
The code has gone bad. It is in debug mode and jumping around everywhereError = "the process or thread has changed since last step"Here is the code... I just create the file "start.csv" to initialize...
View ArticleCode crashing
Stop the timer when it is elapsed in that method and start it again when you leave that method Success Cor
View ArticleCode crashing
Use System.Windows.Forms.Timer instead of Timers.Timer.The latter is not on the ui thread, so it will crash your app if you use it on something that influences the display, in your case manipulating...
View ArticleCode crashing
Nico,How do I implement System.Windows.Forms.Timer?I tried the following but could not get it to work. Should I change to a Forms application? ThanksModule Module1 Public WithEvents Tmr As New...
View ArticleCode crashing
The cause of that error is the breaking point has been hit by different thread. It is because timer will raise elapsed event in a new thread if previous elapsed event still in prcoessing.During you...
View ArticleCode crashing
Sorry Jeffs_Programs, my post was worthless; console applications don't have the kind of threading issues I was refering to.Did you try cor's suggestion?
View ArticleCode crashing
OK, Cor's suggestion was to stop the timer when it is elapsed in that method.How do I do this? I set a breakpoint in the TMR function below. What method is he talking about? Sub Tmr_Tick() Handles...
View ArticleCode crashing
Hi,just use the stop() method of your timer object at the beginning of your Tmr_Tick method and just before the End Sub call the start() method of your timer object again.Hannes If you have got...
View ArticleCode crashing
Hannes,This works. Should I change to code to have the stop and start method at the places you suggest in order to have functioning code. Should the program always crash without the "stop" and "start"?
View ArticleCode crashing
Jeff,usually i stop a timer if the timer_tick event is raised and start it again before the method is finished. If you don`t stop the timer you can run into the problems you have got. Also if you are...
View Article