realbasic-nug
[Top] [All Lists]

Re: self.close a window causes app to break in 2006 r4

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: self.close a window causes app to break in 2006 r4
From: Tom Benson <tombenson at mac dot com>
Date: Thu, 30 Nov 2006 18:58:36 +1100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <97C4605C-4656-4D85-ABD0-15F5D3E394C9 at uniovi dot es>
It sounds to me like your destroying a reference to the window before an child object of that window can finish executing code, but it's very hard to know what is going on without

A) Seeing your code
and
B) Seeing a crash log

Cheers,
Tom Benson


On 30/11/2006, at 6:54 PM, Pelayo wrote:

Hi:

The main window have this call to other window: windowmessage.show (windowmwssag can be a movable or document window)

The "windowmessage" windows, in its open method, has several graphic calls (drawstring ) directed to ownself, etc. and ends with the metod: self.close.

With this scheme, the main window calls the "windowmessage" window which draws strings in its own and then closes because the self.close method.


Well, this has been functioning with RealBasic 4.5 .

But now I have RealBasic 2006 r4 and the the above does not function, the application breaks down. Apparently, the self.close call is the problem. But I tried to change self.close by self.hide and the applicationn does not break but the windowmessage window remains visible and in the front.

Which is wrong in my code?


Thanks,

Pelayo
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>