Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Release my foot!
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00087621
Message ID:
00087632
Views:
28
>vfp 3.0 in win 95
>
>I have a browse screen that upon selection of a record runs
>a pageframe to display the record. Everything is fine until
>I try to RELEASE the browse screen. Once I try to release the
>form, vfp crashes giving me a page fault error in a stack.
>
>I have tried thisform.release(), thisform.hide(), release.thisform()
>_screen.release().
>
>Yadda Yadda Yadda, it's making me crazy.
>
>Is it that my vfp is messed up? should I reinstall?
>
>If I remove the release everything runs fine.
>
>Thanks and have a great day!

I assume that the other methods are causing the same problem. Try the following. If it causes a problem, then I would conclude that the problem is with the installation.
SET LIBRARY TO FOXTOOLS
* lcbrowcapt = The browse window's caption
lnwhandle = _WFindTitl(lcbrowcapt)
IF lnwhandle > 0
  = _WClose(lnwhandle)
ELSE
  WAIT WINDOW "Something's wrong! " + lcbrowcapt + " not found!"
ENDIF
In the above, you're *almost* directly accessing the VFP API (through FOXTOOLS). If this causes a crash, then something's gone wrong internally with VFP. If the window isn't found, then there may be a problem with the way it was created. Please note, that _WFindTitl() is case sensitive, and the caption must match exactly.

hth,
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform