It will always bear a "reference" to the window, but if you put the
windowList, it should still disappear from it, at least until you
specifically reference that variable again.
MIAWs are weird. A window variable will always say window("pranav"), and
by just checking, say, getPos(the windowList, window "pranav") you can
cause it to appear (or something - I just made that one up) in the
windowList, even if you never opened the window or assigned it to a
filename, and after you "forget" the window it should disappear from the
windowList but if you look at the variable it can still say
window("pranav") but if you try to reference a property, say, 'the visible'
of it, it might throw an error (sometimes - depends how it got into the
list). MIAWs are VERY squirrly things. I'm converting a major program
right now to use a lot of MIAWs and am getting pretty annoyed by all the
crevasses I keep falling into.
So, if you are thinking it's not really "forgot" because your variable
still says window("pranav"), don't worry about it. But it's easiest to
just keep track of the stuff yourself.
- Tab
At 04:17 PM 3/14/02 +0530, [EMAIL PROTECTED] wrote:
>Thanks Tab.
>
>I tried setting the property to 0, but the file was somehow not being
>released. So the next time my object was initialised, I'd get an error
>saying that the file was already opened by another user.
>
>And yes, I really am forgetting the MIAW (atleast, I've put the code in).
>When I step through it using the debugger, the line executes, but the
>property still bears a reference to the window. No dice.
>
>I did come up with my own workaround though. When cleaning up, I check the
>position of the window in the windowList using getPos and the window
>reference. Then I set the window reference to 0. Then I forget the window
>from the windowList by doing (the windowList).getAt(vPos). Works like a
>charm.
>
>Regards,
>Pranav.
>
>
>
><snip>
>I've never seen that, would be surprised it happens, since they don't seem
>to carry a reference count, but I guess if it really is the case you should
>
>be able to get around it easily enough by setting the property to 0 (or
>anything else). Are you really sure you're "forgetting" it?
><snip>
>
>
>
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/lingo-l.cgi To post messages to the list, email
>[EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L
>is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]