Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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:


QuestionProtect the running process - searching an old artical Pin
waqarazeem26-Apr-12 23:47
waqarazeem26-Apr-12 23:47 
AnswerRe: Protect the running process - searching an old artical Pin
«_Superman_»27-Apr-12 0:25
professional«_Superman_»27-Apr-12 0:25 
GeneralRe: Protect the running process - searching an old artical Pin
Eytukan27-Apr-12 3:19
Eytukan27-Apr-12 3:19 
AnswerRe: Protect the running process - searching an old artical Pin
krsmichael27-Apr-12 14:48
krsmichael27-Apr-12 14:48 
QuestionIssues with modeless dialogs Pin
vipin_nvk26-Apr-12 21:43
vipin_nvk26-Apr-12 21:43 
QuestionRe: Issues with modeless dialogs Pin
Code-o-mat26-Apr-12 21:57
Code-o-mat26-Apr-12 21:57 
AnswerRe: Issues with modeless dialogs Pin
vipin_nvk26-Apr-12 22:24
vipin_nvk26-Apr-12 22:24 
GeneralRe: Issues with modeless dialogs Pin
Code-o-mat27-Apr-12 0:26
Code-o-mat27-Apr-12 0:26 
GeneralRe: Issues with modeless dialogs Pin
Albert Holguin27-Apr-12 9:01
professionalAlbert Holguin27-Apr-12 9:01 
AnswerRe: Issues with modeless dialogs Pin
Eytukan27-Apr-12 3:24
Eytukan27-Apr-12 3:24 
AnswerRe: Issues with modeless dialogs Pin
Albert Holguin27-Apr-12 8:59
professionalAlbert Holguin27-Apr-12 8:59 
Questionbuffer returning empty, doesn't exist on registry function when running in release, c++ win32 Pin
jkirkerx26-Apr-12 10:23
professionaljkirkerx26-Apr-12 10:23 
AnswerRe: buffer returning empty, doesn't exist on registry function when running in release, c++ win32 Pin
Big Daddy Farang26-Apr-12 12:27
Big Daddy Farang26-Apr-12 12:27 
GeneralRe: buffer returning empty, doesn't exist on registry function when running in release, c++ win32 Pin
jkirkerx27-Apr-12 6:42
professionaljkirkerx27-Apr-12 6:42 
GeneralRe: buffer returning empty, doesn't exist on registry function when running in release, c++ win32 Pin
Randor 26-Apr-12 18:05
professional Randor 26-Apr-12 18:05 
GeneralRe: buffer returning empty, doesn't exist on registry function when running in release, c++ win32 Pin
jkirkerx27-Apr-12 6:51
professionaljkirkerx27-Apr-12 6:51 
GeneralRe: buffer returning empty, doesn't exist on registry function when running in release, c++ win32 Pin
jkirkerx3-May-12 12:55
professionaljkirkerx3-May-12 12:55 

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.