Le 16 janv. 07 à 18:37 Soir, [EMAIL PROTECTED] a écrit:

On Jan 16, 2007, at 17:29 UTC, Arnaud Nicolet wrote:

I put a breakpoint at the w.ShowModal line. Then, w is shown as
modal. When w is closed, I get an OutOfBounds Exception "at" the
w.ShowModal line.
What can cause a ShowModal method to generate such an exception after
it has been executed?

That's a weird one.  I suggest the standard procedure of
checking/deleting code in your Close events, and then deleting controls
one by one.  (I presume you don't see this with just a plain empty
window, so it must be something IN that window that triggers it... so
you just have to narrow it down.)

Thank you.
Usually, I don't like much that technique (because, since it's a complex project,, the only way to be sure to avoid losing objects/ code is to open a copy of the project which then stays in the "Open Recents" menu item near my original and then I have to always differentiate the copy-only-for-debugging and the original). But I'll try.

Actually, to reproduce the issue, I have one document window (named so by frame rather than by behaviour), a dialog that opens above it in which a push button allows to open another dialog on top of the last dialog. The ShowModal that fails is in the 2nd window (1st dialog) and concerns the last dialog. I hope it is not related to this stack of windows._______________________________________________
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