Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C0000005 after Shutdown on a DO FORM form1.scx
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00248302
Message ID:
00248308
Views:
14
>Form1 is displayed in the Main VP Screen. Close the application with the Main VP Screen close box. On Shutdown executes a Cleanup Proc that pretty much closes everything. Cleanup Proc has a Clear Windows which executes the Form1.Unload. Then CleanUp proc finishes. The I get a C000005 on the DO FORM "Form1.scx".
>
>I have applied VS SP3.
>
>Any Ideas?
>
>Brenda

I am not sure how many of use Clear Windows. In my cleanup proc, I have a process that loops through all the open forms and calls their QueryUnload.
local lnFCount, i
lnFCount = _screen.FormCount
for i = 1 to lnFCount
    if type("_screen.forms(i)") = "O"
       if upper(_screen.forms(i).baseclass) = "FORM"
          if upper(_screen.ActiveForm.Name) = "SPLASH"
             loop
          endif
          _screen.forms(i).release()
       else
          release _screen.forms(i)
       endif
    endif
endfor
The testing for Baseclass = "FORM" is probably overkill, but I am going to make darn sure I am release a form now and in the future. My SPLASH screen is a form that stays up all the time. I do not release it until the very end.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform