|
-
Aug 19th, 2002, 03:23 AM
#1
Thread Starter
Frenzied Member
** RESOLVED ** Program Crashing when closing wih Win2000 ?!!
Morning All.
I have a bizarre problem.
I am now the proud owner of a shiny new PC, which is nice !
Unfortunately, I am experiencing a few 'weird' things now that I have moved up to Windows 2000 Professional.
My app, which under Windows 98 worked fine, now crashes when I click a toolbar button to close it.
The code behind the button is "Unload Me", and then it performs the code below for the unload of the MDI master form.
Even more bizarrly, if I step thru in debug mode it doesn't crash, only when I run it normally !!!!
This happens EVERY time as well.
Can anyone give me an idea why this might be ?
Thanks.
Steve.
VB Code:
Private Sub MDIForm_Unload(Cancel As Integer)
Screen.MousePointer = vbHourglass
#If live = 1 Then
RecordTimeOff
#End If
HtmlHelp Me.hwnd, "", HH_CLOSE_ALL, ""
Screen.MousePointer = vbNormal
' Set all connection variables to nothing here to close down cleanly
Set conndll = Nothing
Set conn = Nothing
End
End Sub
Last edited by TheBionicOrange; Aug 19th, 2002 at 03:41 AM.
-
Aug 19th, 2002, 03:41 AM
#2
Thread Starter
Frenzied Member
OK I fixed it.
I shoved a 'DoEvents' in before the 'End' statement and it now works fine.
I presume this must be a timing issue !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|