PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Rolf Brandt on November 18, 2009, 09:42:36 AM

Title: Bug in MDI app???
Post by: Rolf Brandt on November 18, 2009, 09:42:36 AM
I encountered the following problem:

I started an MDI application. I have just one MDIForm and one MDIClient form. As soon as I add a command button to the client form problems start. When I run the app and load the client form the program freezes after a few mouse clicks.

I tried this also with the MDI sample project. Same behavior.

Did someone else experience this?

Rolf
Title: Re: Bug in MDI app???
Post by: Rolf Brandt on November 18, 2009, 09:45:23 AM
I tried to use an ImageButton, XPThemedButton, or RRButton instead - same problem!

Rolf
Title: Re: Bug in MDI app???
Post by: Rolf Brandt on November 18, 2009, 10:24:18 AM
I just thought I found a very simple "solution" to this.

It seemed this happens only as long as you have no code yet in the click event. As soon as you add something like
   MsgBox "Bingo"
or any other code to it the app does not seem to freeze any longer.

But unfortunately it still freezes.

Rolf
Title: Re: Bug in MDI app???
Post by: Paul Squires on November 18, 2009, 11:21:28 AM
Hi Rolf,

I am not 100% clear on what the problem is. When an MDIForm is created (ie. the "Frame" window), FF3 automatically handles the creation of the MDI Client (you can see it on the PropertyList for the MDI Form listed as (MDIClient)).

I am assuming that that you mean MDI child windows (rather than the client window).

Can you post an example or email me an example fo the problem? I never use MDI applications anymore so I am a bit lost regarding the steps you are using to duplicate the problem.


Title: Re: Bug in MDI app???
Post by: Rolf Brandt on November 18, 2009, 11:33:29 AM
Sorry, I meant child and not client of course.

To reproduce the problem you can use the MDIEditor Example that comes with FF3. Add a button to frmDocument, compile, click New. After a few mouse clicks in the text box the app will freeze.

Rolf
Title: Re: Bug in MDI app???
Post by: Paul Squires on December 06, 2009, 05:06:52 PM
This bug is now fixed. Related to bug reported here: http://www.planetsquires.com/protect/forum/index.php?topic=2175.0

Fix will be in v3.05.
Title: Re: Bug in MDI app???
Post by: Rolf Brandt on December 06, 2009, 05:09:57 PM
Great! Thanks, Paul.