472,779 Members | 2,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,779 software developers and data experts.

MDI Windows Memory Allocation Grief :-/


Hope that someone can shed some light on this.

I've got an MDI application with (for the sake of this discussion) 2 child
forms. Both of these forms inherit from on a common 'Base' form which is
quite 'bulky', in that it contains a potentially large DataGrid and a bunch
of supporting DataSets, DataViews etc.

Also on my MDI Parent form, I have a 'Windows' menu option which has the
MdiList property set to True so that it displays a list of MDI Children.

For the purposes of testing, I have a button on my MDI Parent form to force
a GC.Collect.

If I run the application, open FormA and load a bunch of data onto the
datagrid, then open FormB load a bunch of data onto his datagrid, then I
select FormA (by clicking on the form) and close it, then close FormB to
return to the empty MDI Parent form. All seems to be well and the GC
retrieves all the available memory.

However, and this is the bit I don't understand, if I repeat the above test,
exactly the same, except that when closing FormA, instead of clicking on it
to select it, I use the 'Windows' menu then when I have closed both forms
and returned to the Parent form, the memory never seems to get released, no
matter how long I wait, or how many GC.Collects I force.

If anyone could give me a hint as to what the difference between these two
methods is I would be a happy bunny!


Jul 21 '05 #1
0 1072

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Lionel | last post by:
Hi all, Just wondering exactly how memory is allocated using the new operator? More specifically I am interested in how the memory is calculated for globable variables? I recently stumbled into...
by: Michael B Allen | last post by:
Hi, I've tried to write the *simplest* memory allocator possible. I think it would be useful in many cases such as allocating memory on stack as a poor man's garbage collection perhaps. I was...
by: Chris Mayers | last post by:
Hi, Hope that someone can shed some light on this. I've got an MDI application with (for the sake of this discussion) 2 child forms. Both of these forms inherit from on a common 'Base' form...
by: ravishi | last post by:
Well, this is my first topic at this forum and I'm a newbie on C programming too. I'm coding a little program and I've used some "dynamic arrays" on it. Compiling and running the program on Linux...
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.