IDE apparently not releasing memory and loosing controls

OK, I'm having a really hard time with this one. It's never happened to be before and I've been working with VB for a number of years. I'm developing a small application using all vanilla code in VB6. When I run the application in the IDE the memory usage grows with application usage. it's as if memory were being allocated and not released between forms. Related to this is the fact that twice I have run the application and at the end one of my forms lost a number of its controls. They just weren't there anymore. The supporting code, however, was intact. Any ideas

Answer this question

IDE apparently not releasing memory and loosing controls

  • Stan Lin

    Hi,

    your problem sounds more related to the coding method in your app, more specifically the way you are handling objects.

    would like to post your code (or em me direct l e x i c on @ v i c m a r . c om . a u )

    and we may be able shed some light on it.

    regards

    Lex.

  • Amit Banerjee - MSFT

    Hi Lex,

    Thanks for your reply. I'll email you the suspect form and supporting .bas modules. This is my first attempt at handling anything graphical in VB and i'm a bit stumped on why this should happen. I can't identify a causal event. As an aside, the controls that dissapear are not used in any of the graphical routines. They're just basic labels and textboxes on a sstab. I'm on dialup and don't have much band width so i'll send these tonight when i can tie up the phone lines.

    thanks again

    Elliot


  • IDE apparently not releasing memory and loosing controls