> Anyway...all this is not my real problem. My real problem is, how can
> moving a completely unrelated class definition from one .prg file to
> another trigger this insane error?
The behavior you see would make sense if the MainForm object where the
Resize method is triggered is based on the MyForm class that you move
around or contains an object that is based on this class.
Yes. But it is not. The class definition is completely unrelated to the
MainForm object. There is no instance of the form defined by that
definition in existence when the problem occurs.
Also, all I do to the MainForm to trigger this process is click its Close
(X) button. I don't move it or resize it.
The MainForm object still exists after VFP processes the CANCEL command. At
that time, control returns to the Resize() method of the MainForm's parent
class. Code in that method eventually leads to a call to a procedure that
is in the general procedure prg file, which is no longer referenced by SET
PROCEDURE at this time, because SET("PROCEDURE") returns "". However, this
did not cause a problem before I moved the *completely unrelated* form
class out of that procedure file. I can go through the debugger before and
after making that move. Before the move, although SET("PROCEDURE") returns
"", the procedure code still executes. After I made the move, the attempt
to execute that procedure generates Error 1 ("File not found.").
It's a mystery. :)
Thanks.
Ken Dibble
www.stic-cil.org
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.