Click here to Skip to main content
15,887,746 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionWhy this sub is executed 3 times ? Pin
desanti7-Nov-16 18:26
desanti7-Nov-16 18:26 
AnswerRe: Why this sub is executed 3 times ? Pin
Eddy Vluggen11-Nov-16 7:17
professionalEddy Vluggen11-Nov-16 7:17 
GeneralRe: Why this sub is executed 3 times ? Pin
desanti11-Nov-16 19:28
desanti11-Nov-16 19:28 
GeneralRe: Why this sub is executed 3 times ? Pin
Eddy Vluggen12-Nov-16 1:42
professionalEddy Vluggen12-Nov-16 1:42 
QuestionMy application does not close anymore Pin
desanti31-Oct-16 12:33
desanti31-Oct-16 12:33 
QuestionRe: My application does not close anymore Pin
Midi_Mick31-Oct-16 14:43
professionalMidi_Mick31-Oct-16 14:43 
AnswerRe: My application does not close anymore Pin
desanti31-Oct-16 15:01
desanti31-Oct-16 15:01 
GeneralRe: My application does not close anymore Pin
Midi_Mick31-Oct-16 17:07
professionalMidi_Mick31-Oct-16 17:07 
No, those statements do not start threads, but are designed for other threads to safely access "i". This is a tricky sort of bug to find. You will have to get into the debugger, allow the forms to close, and then pause the application and open the "threads" view window. Take a look at the threads that are still running - there'll have to be at least one of them. Examine each thread, and see if they are executing any of your code. You may also have to check the call stack for each thread, if they are executing native code, and see if any of you call got it to that point. Once you find out if any of your .net code is to blame or not, you can then figure out how it got into its state.
Cheers,

Mick
------------------------------------------------
It doesn't matter how often or hard you fall on your arse, eventually you'll roll over and land on your feet.

GeneralRe: My application does not close anymore Pin
desanti31-Oct-16 18:35
desanti31-Oct-16 18:35 
AnswerRe: My application does not close anymore Pin
Midi_Mick31-Oct-16 18:47
professionalMidi_Mick31-Oct-16 18:47 
GeneralRe: My application does not close anymore Pin
desanti31-Oct-16 18:56
desanti31-Oct-16 18:56 
GeneralRe: My application does not close anymore Pin
Midi_Mick31-Oct-16 19:01
professionalMidi_Mick31-Oct-16 19:01 
GeneralRe: My application does not close anymore Pin
desanti31-Oct-16 19:06
desanti31-Oct-16 19:06 
GeneralRe: My application does not close anymore Pin
Midi_Mick31-Oct-16 19:26
professionalMidi_Mick31-Oct-16 19:26 
AnswerRe: My application does not close anymore Pin
Richard Deeming1-Nov-16 3:43
mveRichard Deeming1-Nov-16 3:43 
GeneralRe: My application does not close anymore Pin
desanti1-Nov-16 6:00
desanti1-Nov-16 6:00 
GeneralRe: My application does not close anymore Pin
Richard Deeming1-Nov-16 6:28
mveRichard Deeming1-Nov-16 6:28 
GeneralRe: My application does not close anymore Pin
desanti1-Nov-16 9:19
desanti1-Nov-16 9:19 
GeneralRe: My application does not close anymore Pin
Eddy Vluggen1-Nov-16 9:32
professionalEddy Vluggen1-Nov-16 9:32 
GeneralRe: My application does not close anymore Pin
desanti1-Nov-16 10:21
desanti1-Nov-16 10:21 
GeneralRe: My application does not close anymore Pin
Eddy Vluggen2-Nov-16 3:14
professionalEddy Vluggen2-Nov-16 3:14 
GeneralRe: My application does not close anymore Pin
desanti1-Nov-16 15:31
desanti1-Nov-16 15:31 
GeneralRe: My application does not close anymore Pin
Eddy Vluggen2-Nov-16 4:01
professionalEddy Vluggen2-Nov-16 4:01 
GeneralRe: My application does not close anymore Pin
desanti2-Nov-16 8:16
desanti2-Nov-16 8:16 
GeneralRe: My application does not close anymore Pin
Eddy Vluggen2-Nov-16 13:25
professionalEddy Vluggen2-Nov-16 13:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.