Guys,
Has anyone ever been hit by a similar strange situation?
I have an object class (say, "ObjClass") with several properties and
methods, and the code (outside of this class) goes like this:
ObjClassInstance.doSomething()
ObjClassInstance.decodeData()
ObjClassInstance.presentSelf()
Now, the decodeData() method walks thru an array and while in the
loop it sets a boolean flag to true if a suspicious data has been
encountered. Then, at the end of the method's code, if the flag is
true, an alert dialog is showing up to tell user about it. OK. here's
where the "fun" begins: imagine, after the warning is dismissed,
ObjClassInstance is set to nil and presentSelf() becomes
unreferenced!!! This gets me REALperplexed.
First I isolated the slippery area to the warning fragment. Then did
some desperate testing. And what is apparently nihilizing the
instance is the .showModal method used to show the warning. When I
remove the word "Modal" from the code, the problem disappears (but of
course the .showModal method is the only one I should be using, so it
is just for testing purposes).
I tried several ways of showing a window, with and without
instantiating it - doesn't matter at all. ShowModal screws the code?
Anyone seen this before?
BTW: I'm using a16 (as you can see by this email's date) just because
for some time I have been without a reasonable internet connection to
download new beta.
Regards,
Artur
---
Subscribe to the digest:
<mailto:realbasic-dr-digest at lists dot realsoftware dot com>
Unsubscribe:
<mailto:realbasic-dr-off at lists dot realsoftware dot com>
|