Click here to Skip to main content
15,909,747 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Declaring and using private function in DLL [modified] Pin
Cedric Moonen8-Dec-10 20:55
Cedric Moonen8-Dec-10 20:55 
GeneralRe: Declaring and using private function in DLL Pin
Rajesh R Subramanian8-Dec-10 21:30
professionalRajesh R Subramanian8-Dec-10 21:30 
GeneralRe: Declaring and using private function in DLL Pin
Richard MacCutchan8-Dec-10 23:28
mveRichard MacCutchan8-Dec-10 23:28 
GeneralRe: Declaring and using private function in DLL Pin
Cedric Moonen8-Dec-10 23:37
Cedric Moonen8-Dec-10 23:37 
QuestionProcess exit memory released? Pin
vipin_nvk7-Dec-10 23:13
vipin_nvk7-Dec-10 23:13 
AnswerRe: Process exit memory released? Pin
bleedingfingers7-Dec-10 23:27
bleedingfingers7-Dec-10 23:27 
GeneralRe: Process exit memory released? Pin
vipin_nvk7-Dec-10 23:36
vipin_nvk7-Dec-10 23:36 
GeneralRe: Process exit memory released? Pin
bleedingfingers7-Dec-10 23:43
bleedingfingers7-Dec-10 23:43 
No no. Suppose you have a code like this in your app

void main()
{
while(true)
{
int *array = new int[100];
}
}


As long as the app runs, you will have memory leak since you aren't deleting the allocated memory.

And it doesn't really matter if the app crashes or ends normally, for the OS the app has ceased to exist and it cleans up. It is your (the app's) data files, network connections etc that would encounter trouble when the app crashes.

Clear?
...byte till it megahertz...

my donation to web rubbish

GeneralRe: Process exit memory released? Pin
vipin_nvk7-Dec-10 23:45
vipin_nvk7-Dec-10 23:45 
GeneralRe: Process exit memory released? Pin
Rajesh R Subramanian7-Dec-10 23:55
professionalRajesh R Subramanian7-Dec-10 23:55 
GeneralRe: Process exit memory released? Pin
Rajesh R Subramanian8-Dec-10 0:02
professionalRajesh R Subramanian8-Dec-10 0:02 
GeneralRe: Process exit memory released? Pin
vipin_nvk8-Dec-10 0:34
vipin_nvk8-Dec-10 0:34 
GeneralRe: Process exit memory released? Pin
Rajesh R Subramanian8-Dec-10 0:36
professionalRajesh R Subramanian8-Dec-10 0:36 
AnswerRe: Process exit memory released? Pin
Rajesh R Subramanian7-Dec-10 23:32
professionalRajesh R Subramanian7-Dec-10 23:32 
AnswerRe: Process exit memory released? Pin
Cedric Moonen8-Dec-10 0:16
Cedric Moonen8-Dec-10 0:16 
AnswerRe: Process exit memory released? Pin
Maximilien8-Dec-10 1:42
Maximilien8-Dec-10 1:42 
AnswerRe: Process exit memory released? Pin
Niklas L8-Dec-10 21:58
Niklas L8-Dec-10 21:58 
QuestionHow can identify why AfxBeginThread return value is NULL? Pin
Le@rner7-Dec-10 18:08
Le@rner7-Dec-10 18:08 
AnswerRe: How can identify why AfxBeginThread return value is NULL? Pin
Rajesh R Subramanian7-Dec-10 19:44
professionalRajesh R Subramanian7-Dec-10 19:44 
AnswerRe: How can identify why AfxBeginThread return value is NULL? Pin
bleedingfingers7-Dec-10 20:00
bleedingfingers7-Dec-10 20:00 
GeneralRe: How can identify why AfxBeginThread return value is NULL? Pin
Le@rner7-Dec-10 20:29
Le@rner7-Dec-10 20:29 
GeneralRe: How can identify why AfxBeginThread return value is NULL? Pin
Rajesh R Subramanian7-Dec-10 20:48
professionalRajesh R Subramanian7-Dec-10 20:48 
GeneralRe: How can identify why AfxBeginThread return value is NULL? Pin
bleedingfingers7-Dec-10 23:30
bleedingfingers7-Dec-10 23:30 
GeneralRe: How can identify why AfxBeginThread return value is NULL? Pin
Le@rner7-Dec-10 23:35
Le@rner7-Dec-10 23:35 
GeneralRe: How can identify why AfxBeginThread return value is NULL? Pin
Rajesh R Subramanian7-Dec-10 23:57
professionalRajesh R Subramanian7-Dec-10 23:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.