On Mar 13, 2006, at 8:07 PM, Giuseppe Farese wrote:

I've found a crash with 2006r1 when opening a Sheet Window from a contextual menu, which is inside a container control, which resides in the main window. It happens to me always on Mac.

Yes, it crashes shortly after opening as you have written the code. However, if I change the line

w2.ShowModalWithin self

to

w2.ShowModalWithin Window1

It works fine and here is why I think your code is in error. Look at the defninition of self in the online language reference. The last section reads as follows:

"When Self is called within the method of a class, Self will be a reference to the instance of the class in use. This is usually not necessary since, as stated, in the absence of an object identifier, the parent or super object is assumed."

So I don't believe that "self" is referring to the window in this case.



=== A Mac addict in Tennessee ===

_______________________________________________
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>

Reply via email to