|
Many thanks for your help Antti ! I'll have a look at the different methods you suggest !
Thanks,
Jerome
|
|
|
|
|
Is there anybody who worked on memory leaks in MFC,
whenever a model dialog is open there is an increase of 4 k bytes of memory and when it is closed it is not released.
And also whenever a spin control is used for the first time there is an increase of memory which is not reduced when the dialog is closed.
Why it is like this? where is the leak?
vidya
|
|
|
|
|
|
Yes there is a leakage, when my application is started
it is having only mainframe that time the memory in task manager is 3500k
now i opened one dialog from the menu bar...and the memory increased to 3788k
when i closed that dialog the memory is not reduced back to 3500k
why it is like this? Is there any virtual function i need to call for this dialog?
In that dialog i am not allocating anything still when the dialog is initialized the memory is increased by not decreased on closing of that dialog.
vidya
|
|
|
|
|
The symptoms you have described do not mean it is a leak.
What happens if you repeatedly open and close the dialog? Does the memory keep increasing each time or does it stay at 3788k? I expect it will stay at 3788k or whatever indicating that it is not leaking.
Mike
|
|
|
|
|
visual studio .net normally shows up memory leaks after the program exited. try to execute the debug version of your software via vs .net.
Don't try it, just do it!
|
|
|
|
|
Did you actually read the article that Jon Hulatt was referring to? It explains why your memory used by your app doesn't decrease...
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
Dumping objects ->
{462} normal block at 0x00628CE0, 36 bytes long.
Data: <192.168.100.83 S> 31 39 32 2E 31 36 38 2E 31 30 30 2E 38 33 00 53
strcore.cpp(118) : {456} normal block at 0x00628D30, 23 bytes long.
Data: < Prod> 01 00 00 00 09 00 00 00 0A 00 00 00 50 72 6F 64
strcore.cpp(118) : {455} normal block at 0x00628D80, 30 bytes long.
Data: < name> 01 00 00 00 10 00 00 00 11 00 00 00 6E 61 6D 65
strcore.cpp(118) : {454} normal block at 0x00628DD0, 29 bytes long.
strcore.cpp(118) : {331} Memory leaked!
I am getting like this when i use DumpAllObjectsSince(); while checking for memory leakage.
Where is the leakage?
vidya
|
|
|
|
|
Hello,
Maybe you are doing some things with a CString that you shouldn't. For exemple when you manipulate the CString contents directly without calling CString.ReleaseBuffer() will result in behaviour you don't want...
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
I read this article. Thanks.
Can you suggest some other tools(evaluation copy) for checking memory leakage in a souce code.
I think we wont get an evaluation copy of Bound Checker.
vidya
|
|
|
|
|
I have a MDI application when it is created the memory occupied for that application in task manager is around 2000K i open some document in that MDI application, the usage of memory grows up. Now i minimize the main frame window and i notice in task manager the memory is decreased to around 1000K.
I think the resouces which were not used are released when the mainframe is minimized.
Please let me know if anybody knows....
Which function is called when the mainframe is minimized?
How the resources are released when it is minimized?
vidya
|
|
|
|
|
Thanks.
I got the solution for this
go through this link
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q293/2/15.asp&NoWebContent=1#appliesto
vidya
|
|
|
|
|
I need to design a dialog based application in vcpp through which i need to send and receive data through the com port.
Still now,i've completed the part through which i can send and receive data using a buffer.
i've not included the com port module so far.
1) In my menu options i've included all the ports, but the ports which r presently connected to the system should be enabled.
2) I've to configure the port, even if it is connected or not.
3)By choosing that particular port, i need to connect and send and receive data through it.
mithila
|
|
|
|
|
Look at
http://www.codeproject.com/system/serial.asp ( CSerial )
or at the wfc, there is a serial class.
or
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn_serial.asp
Good Luck,
Hardy.
|
|
|
|
|
Hi,
I'm using menu in my module.
The ports which r present in the system should be enabled in the menu.
How is it possible?
mithila
mithila
|
|
|
|
|
The CSerial- class has a "Open" and "Close" Method and it can be configured.
So call open from your menu's message-handler to open the comport , but take care that you write the configuration before.
To close it, just call the close-Method.
I think there is a example-App with CSerial.
Hardy.
|
|
|
|
|
hello , I am doing a project where i have get a letter format for a record which is in database other words connect a primary key from the database for
a record so that to get a letter automatically related to that record
please any one can help me
bye
|
|
|
|
|
And where do you need help?
In designing the database, in asking the database ( sql ) or in reading the answer ( c++ )
Hardy.
|
|
|
|
|
while designing database and able view useing VC++
|
|
|
|
|
Database design:
http://www.edm2.com/0612/msql7.html
Accessing with VC++:
www.codeproject.com/database/odbcrecordset.asp
And for a Database look at
www.ibphoenix.com
and get Firebird.
|
|
|
|
|
thanks for the information , while let me tell u that i got many information by u r replay , But have to make a report for a record in the database with contain certain information , which should be related to the database beacuse each record report will be haveing some default details and some unique information ,
thank you
|
|
|
|
|
Hello.
I'd like to ask about how to edit or operate Windows registry.
This question might be related to Windows Shell Programming...
Who knows how to delete item(s) from context(pop up) menu when right-clicked in explorer?
The way is not by using ".EnableWindow(FALSE)" but by editing or operating of Windows registry.
I don't know in which path(place) of registry and what editing or operating of registry key(s) or value(s).
Concretly, the items I'd like to delete are "print", "cut" and "copy".
After editing registry and reboot, this result is effective whole Windows System.
Finally, I'd like to make ".dll" file which upper things are able.
Please tell me if anyone knows.
|
|
|
|
|
I don't think you can achieve this through registry modification. Do you know the key/value in registry to modify??
ARSALAN MALIK
|
|
|
|
|
To tell the truth... I don't know which key/value in registry to modify.
Then I've been looking into various information, but I can't find!
As the result, the way is not registry modification but another one.
Then do you know the www link(s) or any tip(s) to solve?
|
|
|
|
|
you can remove "print", but not "cut" or "copy" via registry!
Don't try it, just do it!
|
|
|
|