craigachan
Registered User.
- Local time
- Today, 14:33
- Joined
- Nov 9, 2007
- Messages
- 282
I'm getting a application crash after I try to stop all code.
Everything runs well and my code gets to msgbox "Getting Ready To Stop", but then crashes the application. I don't want my code to return to do other things in Func1(). I want everything to stop. Any idea why this is happening? I'm stumped. Thanks for any help.
Code:
Private Function Func1()
on error goto Func1Err
if something then call Func2
Do some more stuff
Func1Exit:
Exit Function
Func1Err:
msgbox "Error Message"
resume Func1Exit
End Function
Private Function Func2()
on error goto Func2Err
Do some stuff...
If something happens then gosub StopAll
Func2Exit:
Exit Function
Func2Err:
Msgbox "Error Message"
resume Func2Exit
StopAll:
Msgbox "Getting Ready to Stop"
End
end function
Everything runs well and my code gets to msgbox "Getting Ready To Stop", but then crashes the application. I don't want my code to return to do other things in Func1(). I want everything to stop. Any idea why this is happening? I'm stumped. Thanks for any help.