Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Tabbed MDI bug?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tabbed MDI bug?

 Post Reply Post Reply
Author
Message
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post Topic: Tabbed MDI bug?
    Posted: 28 January 2005 at 5:45am

I created a visual studio like tabbed MDI app and discovered some strange behavior that might be a bug:

when I open a couple of MDI childs and then close some of them again, the VB forms collection still contains some "ghost" windows for each of them. This way, those strange windows grow and grow because they only seem to be discarded when the app closes.

Is that something I need to handle in code, or is it really the controls responsibility?

To reproduce do the following:

Create child MDI windows and assign a tag to each form, i.e. childform.tag=1.

Then close some of them again.

Then look for windows with the assigned tag:

for each form in forms

if form.tag=1 then c=c+1

next

debug.print c

In my case, c constantly grows. Can you reproduce this?

 

 

Back to Top
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2005 at 5:48am
must be something with my app... just checked with your visual studio example. This does not show the strange behavior. Never mind, I'll dig into it further...
Back to Top
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2005 at 5:56am

Hmm:

I used a tabcontrol and assigned some forms to the tabs.

I wasn't aware that I was responsible to actually UNLOAD those forms when unloading the form that holds the tabcontrol.

Shouldn't that be done by the tabcontrol itself? At least this was the reason for the strangely lingering ghost windows. They were abandoned forms that used to be displayed on the tabs.

 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.