Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Process privileges elevation on runtime with Win7 UAC? Pin
«_Superman_»23-Sep-10 18:35
professional«_Superman_»23-Sep-10 18:35 
AnswerRe: Process privileges elevation on runtime with Win7 UAC? Pin
Eugen Podsypalnikov23-Sep-10 20:30
Eugen Podsypalnikov23-Sep-10 20:30 
GeneralRe: Process privileges elevation on runtime with Win7 UAC? Pin
Moak24-Sep-10 5:48
Moak24-Sep-10 5:48 
QuestionSetCursor question Pin
sashoalm23-Sep-10 5:41
sashoalm23-Sep-10 5:41 
AnswerRe: SetCursor question Pin
Sauro Viti23-Sep-10 5:49
professionalSauro Viti23-Sep-10 5:49 
QuestionHelp on TAPI....... Pin
AmbiguousName23-Sep-10 5:04
AmbiguousName23-Sep-10 5:04 
QuestionRe: Help on TAPI....... Pin
David Crow23-Sep-10 8:33
David Crow23-Sep-10 8:33 
QuestionHandling all exceptions in application [modified] Pin
Code-o-mat23-Sep-10 3:37
Code-o-mat23-Sep-10 3:37 
Hello fellas!

We have a global exception handler "installed" by SetUnhandledExceptionFilter[^] to do some log/dump creating and "gracefully degrade"-ation in case something goes bad. This seems to work quite reliably but...i did some testing by "manually" throwing from inside our code:
throw "stone";

What i don't understand is this: on some systems, this reaches our global handler, creates the dump, displays the "sorry" dialog and shuts down the application, all fine. But on some others, this presents a "CRT runtime error - Abnormal program termination" message box after which is dismissed, the application exits, but our installed global handler doesn't run, so no log/dump is created whatsoever, also, sometimes i see the application "stuck" amongst the processes in task manager.
This particularry seems to happen if i build a release of the project, run it (without debugger), make the exception happen, i get the CRT messagebox, if i copy the same executable to a colegue's PC, run it there, then the global handler gets the exception and works as it should.
So, can anyone explain to me why this happens and how to change it?

I read somewhere that one can also use _set_invalid_parameter_handler[^] to handle CRT exceptions, but the name of this method suggests something else than what i think i am after. Any hints?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> "It doesn't work, fix it" does not qualify as a bug report. <
> Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <

modified on Thursday, September 23, 2010 9:54 AM

AnswerRe: Handling all exceptions in application Pin
Aescleal23-Sep-10 4:34
Aescleal23-Sep-10 4:34 
GeneralRe: Handling all exceptions in application Pin
Code-o-mat23-Sep-10 4:47
Code-o-mat23-Sep-10 4:47 
GeneralRe: Handling all exceptions in application Pin
Aescleal23-Sep-10 5:28
Aescleal23-Sep-10 5:28 
GeneralRe: Handling all exceptions in application Pin
Code-o-mat23-Sep-10 5:42
Code-o-mat23-Sep-10 5:42 
QuestionWhy do I get warning C4748? Pin
Stefan_Lang23-Sep-10 1:51
Stefan_Lang23-Sep-10 1:51 
QuestionRe: Why do I get warning C4748? Pin
David Crow23-Sep-10 2:56
David Crow23-Sep-10 2:56 
AnswerRe: Why do I get warning C4748? Pin
Stefan_Lang23-Sep-10 3:14
Stefan_Lang23-Sep-10 3:14 
AnswerRe: Why do I get warning C4748? Pin
Maximilien23-Sep-10 3:34
Maximilien23-Sep-10 3:34 
QuestionRe: Why do I get warning C4748? Pin
David Crow23-Sep-10 4:21
David Crow23-Sep-10 4:21 
AnswerRe: Why do I get warning C4748? Pin
Maximilien23-Sep-10 4:43
Maximilien23-Sep-10 4:43 
GeneralRe: Why do I get warning C4748? Pin
Stefan_Lang23-Sep-10 4:34
Stefan_Lang23-Sep-10 4:34 
GeneralRe: Why do I get warning C4748? Pin
Luc Pattyn23-Sep-10 4:48
sitebuilderLuc Pattyn23-Sep-10 4:48 
GeneralRe: Why do I get warning C4748? Pin
Stefan_Lang23-Sep-10 6:55
Stefan_Lang23-Sep-10 6:55 
GeneralRe: Why do I get warning C4748? Pin
Luc Pattyn23-Sep-10 7:16
sitebuilderLuc Pattyn23-Sep-10 7:16 
AnswerRe: Why do I get warning C4748? [modified] Pin
Stefan_Lang23-Sep-10 23:03
Stefan_Lang23-Sep-10 23:03 
QuestionArray traversal Pin
T.RATHA KRISHNAN23-Sep-10 1:31
T.RATHA KRISHNAN23-Sep-10 1:31 
AnswerRe: Array traversal Pin
_AnsHUMAN_ 23-Sep-10 2:02
_AnsHUMAN_ 23-Sep-10 2:02 

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.