Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisform.release not working
Message
From
19/10/2001 04:41:44
 
 
To
19/10/2001 03:43:24
Stephen Ehigie
Shell Petroleum Development Company
Port Harcourt, Nigeria
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00570658
Message ID:
00570673
Views:
17
Hi!

Form does not release if there is a reference exists in some variable, property or memory to any object on the form. VFP have object reference count for each object. Each time you assign reference to object somewhere, this count is increased. Each time reference is released from memory, this count is decreased. Some object on the form reports that it is referenced somewhere else (its reference count is greater than 1).

This also could happen when some data session created by custom ways could not be closed because some uncommited changes in the alias in that data session or unfinished transaction.

>I refer to the following code which I placed in the click event of my form (modal) button. The form does not get released even though I could watch the lines inside the IF...ENDIF statement execute from the debugging window.
>
>wait ("Preprocessing bank statement entries. Please wait...") window nowait okay=stmtimport(fname,mperiod)
>if .not. okay
> wait clear
> close databases
> thisform.release
>endif
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform