473,463 Members | 1,350 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Resource deallocation?

Hello,

i created two forms and Form1 and Form2
from From1 i created object for Form2 and
from From2 i created object for Form1

In Form1
Public void OpenForm2()
{
Form2 f2 = new Form2();
f2.ShowDialog();
this.visible = false;
}
i have done some modifications in Form2 and now i close Form2 now i need to
show Form1 again so..
In Form2
{
Form1 f1 = new Form1();
f1.visible = true;
}

it is ok but after closing the Form1 means complere project then still the
appliction is running .the resources are not released..

i am not using any closing opration .just clicking 'X' in the window
corner..beside minimize,maximize button..

can u clarify this how to reallocte the resources when we create one class
object in another class...

if it continuous for 10 class to invoke each other need to close resources
or it will automatically done..

thank u
Sep 6 '06 #1
0 976

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

Similar topics

1
by: qazmlp | last post by:
Is there a memory leak here? Can't the memory deallocation happen automatically as the std::string object anyway is owning the memory? #include <cstring> #include <string> #include <iostream> ...
7
by: Andy Chang | last post by:
Hi, If I have typedef struct { std::vector <float> vSomeVal; int i; } VEC_T; Then is VEC_T * ptr a valid pointer to the struct accessing the vector? Also do I need to explicitly...
4
by: Dave | last post by:
Hello all, In the program below, why am I not seeing operator delete being invoked? If a constructor throws, isn't allocated memory supposed to be released and then the exception re-propagated?...
3
by: xixi | last post by:
hi, we are using db2 udb v8.1 on win 64 bit with fp3 with type 4 db2jcc.jar driver. i have this problem happened sometimes when try to execute a query and failed. ...
9
by: Alf P. Steinbach | last post by:
<what to design a C++ solution for> A Windows API /resource/ is data embedded in the executable, accessed via API functions. A resource is completely identified by the quadruple (id, type,...
6
by: madhu | last post by:
vector<vector<vector<long Vector3D; // 3dvector. for (long k = 0; j < Depth; j++ ) { Vector3D.push_back ( vector<vector<A_Type() ); for (long j = 0; j < Height; j++ ) { Vector3D.push_back (...
0
by: gigigigi | last post by:
In reference to a Standard Template Library map container, when erase is used, does automatic memory deallocation occur on a single entry?
0
by: divyabarathii | last post by:
hi i declared a structure as shown below Struct Name { int *nPtr; float *fPtr; } In MFC, one command button click event, i added the following code and CDocClass has the structure as...
0
by: Kumar McMillan | last post by:
I get this warning from my test suite when I introduced a segment of code: python(18603,0xa000d000) malloc: *** Deallocation of a pointer not malloced: 0x310caa3; This could be a double free(),...
18
by: welch.ryan | last post by:
Hi all, Having a problem with addressing large amounts of memory. I have a simple piece of code here that is meant to allocate a large piece of memory on a ppc64 machine. The code is: /*...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.