|
Recapping the situation: I have an app compiled for Debug which while running under the debugger is fine. If I execute the same app stand-alone it appears to have a memory leak. As suggested earlier, the stand-alone platform was configured for remote debugging.
Under Debug, Task Manager reports the application using around 7MB of memory. Task Manager also reports the overall memory usage of the system to be around 110MB. While the app memory usage varies more than I would have expected, it has not gone over 10MB that I have observed while running in debug mode.
Running standalone Task Manager initially reports the application using the same 7MB amount of memory. After 8 hours of operation the memory usage of the application has increased around to around 10MB, and after 48 hours it is around 14MB. The overall memory usage reported after 8 hours though has increased by 30MB! and this value continues to increase linearly with time. After 48 hours the overall memory usage has exceeded 300MB.
I have placed memory leak detection code around the entire app and inside the app around the core functions. The inside code reports an occassional change in memory, but reports a reciprocal change later on. As noted, it doesn't leak under debug, so dumping statistics to the debug output window is not helping resolve the problem.
Any further suggestions for locating the cause of this problem would be appreciated. FYI, the stand-alone platform is XP though I do not know if this is significant.
>>>-----> MikeO
|
|
|
|
|
Hi,
How to get MODEMDEVCAPS by calling GetCommProperties ?
MDN says that COMMPROP.wcProvChar contains MODEMDEVCAPS
wcProvChar is widechar, How to get MODEMDEVCAPS structure from COMMPROP.wcProvChar ?
Thanks,
Perumalla Koteswara Rao, (B.Tech)
Hyderabad, Inida
|
|
|
|
|
Can I using CTreeCtrl show only some folders, for example:
Show all folders in (C:\\winnt\)
excluding rest disks etc ... ?
thank you!
==============
www.design.kg
|
|
|
|
|
|
Offcourse u can, if you are programming the TreeCtrl
yourself. Can u be more specific abt ur requirements ?
|
|
|
|
|
But how to do it?
All samples shown all tree(desctop,c...), and I need only specified, maybe like in Outlook(only local folders) without up folders ...
like C:\\somefolder\someotherfolder\
must be a root in TreeCtrl ...
can anybody send me a sample, please?
==============
www.design.kg
|
|
|
|
|
HI,
all
I am interested in Genutella which is a P2P communication protocol.But now I did not know how to begin
my study on Genutella .
So I ask help from you . Who can give me some useful
Urls where I can download the VC souce code as well as the executable Genutella Application itselsf ?
Your advanced help will be appreciated !
Regards.
Marion.
|
|
|
|
|
|
I have download some source code,such as Morpheus,Gnucleus
from that site. But I can not build and run them in VC IDE .
I have search for long time ,but find no source code
which can be built correctly .
Can you give me some useful url ??
thx.
|
|
|
|
|
I've lost Class View and i would like to know what should i do to regenerate it.
Wish for help!
rechi
|
|
|
|
|
delete *.ncb and *.opt files
|
|
|
|
|
If the above doesn't work, try with *.clw file. Delete it, or rename it to be something *_bak.clw. Then press Ctrl+W in VC++ 6.0 to rebuild the *.clw file.
|
|
|
|
|
Make your .ncb file read/write.
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
hi
can we use the class that is used in console programming in MFC programming.
Thanks
|
|
|
|
|
Only some question: which class, own written or system? What API functions does it use?
If class does not use any Console functions it can be freely used in MFC.
|
|
|
|
|
Of course you can!
Maxwell Chen
People say "No news is good news". Then, no bug is good bug!?
|
|
|
|
|
ok, i see. Thanks heap for that.
|
|
|
|
|
Kann mir jemand 'n Tip geben, wie ich die Date-/Timepicker so konfigurieren kann, das jeweils nur die Tage, Monate bzw. Jahre angezeigt werden
und nicht der ganze Kalender?????
|
|
|
|
|
Try say that again in english??
Thank you very much,
John
Aloha from Hawaii
|
|
|
|
|
Hm, looks like he or she has too much problems to see that this is an English speaking forum
"Can someone give me a tip how to configure the Date/Timepicker control in a way that it shows only days, month or years, not the whole calendar?"
|
|
|
|
|
Beim Versuch eine Access-DB in eine MDI-Anwendung (über RecordSet)
einzubinden, bekomme ich immer die Fehlermeldung: Der ODBC-Treiber
unterstützt keine Dynasets.
Bei der Anlage des RecordSets wurde die DB-Tab korrekt als Dynaset eingebunden.
Bei einem anderen SDI-Projekt war dies mit einer ähnlich strukturierten
Access-DB, mit den gleichen ODBC-Treibern problemlos möglich.
Bin für jede Lösung dankbar...
|
|
|
|
|
Try English.
Aizik Yair
Software Engineer
|
|
|
|
|
I try to translate it.
"During the attempt to access a Access-DB in a MDI application (via Recordset) I always get the error message: The ODBC driver doesn't supports dynasets.
During the creation of the recordset the DB-Tab is included correct as dynaset [Huh? What does this means? Okay, I don't use ClassWizard, I write the code by myself.] In a different SDI project it was possible without any problems with an Access-DB with the same ODBC drivers.
TIA"
|
|
|
|
|
i am trying to use qsort so that i can sort out y from highest to lowest. can anyone help me? anyways, thank you very much.
struct SPRITE
{
int x;
int y;
};
// Maximum number of sprites
const int N_SPRITES = 10;
// Array of sprites
SPRITE sprites[N_SPRITES];
int Compare (const void *one, const void *two);
/* Pre: Enter value for one and two
* Post: Compares all of both strings
*/
int main()
{
int value;
for (int i=0; i<n_sprites; i++)
="" {
="" cout="" <<="" "enter="" a="" value:="" ";
="" cin="">> value;
sprites[i].y = value;
}
qsort(sprites, N_SPRITES, sizeof(int), Compare);
for (i=0; i
|
|
|
|
|
for (int i=0; i // ERROR
{
...
}
for ( int i=0 ; i < N_SPRITES ; i++ ) // GOOD
{
...
}
Aizik Yair
Software Engineer
|
|
|
|