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

C / C++ / MFC

 
QuestionRe: OnInitDialog? Pin
David Crow30-Apr-12 6:07
David Crow30-Apr-12 6:07 
AnswerRe: OnInitDialog? Pin
Le Quang Long30-Apr-12 14:11
Le Quang Long30-Apr-12 14:11 
QuestionRestrict Copy and Paste Pin
john563229-Apr-12 18:35
john563229-Apr-12 18:35 
AnswerRe: Restrict Copy and Paste Pin
_AnsHUMAN_ 29-Apr-12 22:29
_AnsHUMAN_ 29-Apr-12 22:29 
AnswerRe: Restrict Copy and Paste Pin
JohnCz2-May-12 11:09
JohnCz2-May-12 11:09 
QuestionHow to setup the project settings when create an x64 project in cs2008? Pin
SAMZCN29-Apr-12 17:27
SAMZCN29-Apr-12 17:27 
AnswerRe: How to setup the project settings when create an x64 project in cs2008? Pin
Lakamraju Raghuram29-Apr-12 17:56
Lakamraju Raghuram29-Apr-12 17:56 
GeneralRe: How to setup the project settings when create an x64 project in cs2008? Pin
SAMZCN30-Apr-12 1:06
SAMZCN30-Apr-12 1:06 
GeneralRe: How to setup the project settings when create an x64 project in cs2008? Pin
Randor 30-Apr-12 2:42
professional Randor 30-Apr-12 2:42 
Questionrelational operators in class time Pin
MMJ198929-Apr-12 14:28
MMJ198929-Apr-12 14:28 
QuestionRe: relational operators in class time Pin
Lakamraju Raghuram29-Apr-12 17:57
Lakamraju Raghuram29-Apr-12 17:57 
QuestionAsyncIO - how to use it? Pin
TalSt29-Apr-12 1:47
TalSt29-Apr-12 1:47 
AnswerRe: AsyncIO - how to use it? Pin
Aescleal29-Apr-12 3:22
Aescleal29-Apr-12 3:22 
QuestionEXE File Protection Pin
Le Quang Long27-Apr-12 21:22
Le Quang Long27-Apr-12 21:22 
AnswerRe: EXE File Protection Pin
Rajesh R Subramanian27-Apr-12 21:31
professionalRajesh R Subramanian27-Apr-12 21:31 
GeneralRe: EXE File Protection Pin
Le Quang Long28-Apr-12 0:12
Le Quang Long28-Apr-12 0:12 
GeneralRe: EXE File Protection Pin
Rajesh R Subramanian28-Apr-12 0:57
professionalRajesh R Subramanian28-Apr-12 0:57 
GeneralRe: EXE File Protection Pin
Le Quang Long28-Apr-12 16:19
Le Quang Long28-Apr-12 16:19 
Questionhow to make this not stop? Pin
Member 784572027-Apr-12 14:17
Member 784572027-Apr-12 14:17 
AnswerRe: how to make this not stop? Pin
krsmichael27-Apr-12 14:45
krsmichael27-Apr-12 14:45 
GeneralRe: how to make this not stop? Pin
Member 784572027-Apr-12 15:07
Member 784572027-Apr-12 15:07 
GeneralRe: how to make this not stop? Pin
krsmichael27-Apr-12 18:33
krsmichael27-Apr-12 18:33 
GeneralRe: how to make this not stop? Pin
Member 784572027-Apr-12 21:20
Member 784572027-Apr-12 21:20 
AnswerRe: how to make this not stop? Pin
Stephen Hewitt27-Apr-12 20:05
Stephen Hewitt27-Apr-12 20:05 
AnswerRe: how to make this not stop? Pin
Emilio Garavaglia29-Apr-12 10:44
Emilio Garavaglia29-Apr-12 10:44 
int main()
{
    while(true) 
        malloc(50);
    return 0;
}


The loop is now infinite, but the memory will sooner or later be exhausted.
At that point, malloc will not allocate anymore, but the loop will still cycle forever.
It will be very hard to stop it, having no more resource to create another process to kill the cycling one ...

2 bugs found.
> recompile ...
65534 bugs found.
D'Oh! | :doh:


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.