Click here to Skip to main content
16,007,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error C2712: Cannot use __try in functions that require object unwinding Pin
Joan M28-Jan-03 21:37
professionalJoan M28-Jan-03 21:37 
GeneralRe: error C2712: Cannot use __try in functions that require object unwinding Pin
Joan M28-Jan-03 22:33
professionalJoan M28-Jan-03 22:33 
GeneralRe: error C2712: Cannot use __try in functions that require object unwinding Pin
Joaquín M López Muñoz29-Jan-03 0:09
Joaquín M López Muñoz29-Jan-03 0:09 
GeneralRe: error C2712: Cannot use __try in functions that require object unwinding Pin
Joan M29-Jan-03 0:30
professionalJoan M29-Jan-03 0:30 
GeneralRe: error C2712: Cannot use __try in functions that require object unwinding Pin
Joaquín M López Muñoz29-Jan-03 0:32
Joaquín M López Muñoz29-Jan-03 0:32 
GeneralRe: error C2712: Cannot use __try in functions that require object unwinding Pin
Joan M29-Jan-03 0:57
professionalJoan M29-Jan-03 0:57 
GeneralRe: error C2712: Cannot use __try in functions that require object unwinding Pin
Joaquín M López Muñoz29-Jan-03 2:38
Joaquín M López Muñoz29-Jan-03 2:38 
GeneralRe: error C2712: Cannot use __try in functions that require object unwinding Pin
Joan M29-Jan-03 3:44
professionalJoan M29-Jan-03 3:44 
Hello again...

Yes, it should have worked...

I've remembered that I tried this before when I've seen a variable declared at the beggining of the thread (UINT uiErrorModeANT = 0; ) that was the one that I had used in order to set the new error mode and at the last point of the thread flow I used it to return the error state at it's original state.

Some time ago I decided to left that function without that security because of I had not enough time...

- I had tried to use the try/catch and it didn't worked because it hung the thread (I suppose that it was because I didn't know how to make it work).

- I had tried setting the error mode to "0 | SEM_FAILCRITICALERRORS" too and it didn't worked too.

- Now I was wondering about SEH, and after your help, I've seen that the exception raised wasn't captured by the SEH...


Dead | X|

I don't know what more to search or to do... but I must solve that because is a weak point of my program and it can make possible to enter to the OS without permission.

And I would like to leave the messages that appear when I take the floppy out from the drive, but then the taskbar appears only for a while, but it give access to it to the user; this is a very big problem for me because I write apps that must start at the beggining and end shutting down the PC...

NOTE:
It seems that the rightest approach was the try/catch, at least it blocked the message, the only problem is that I don't know why it blocked the thread too...

Can I send you the thread code? (it's a small function)...

Thank you in advance...

PS: Before sending you the code I'll wait for your answer... meanwhile I'll continue trying to solve it.
GeneralRe: error C2712: Cannot use __try in functions that require object unwinding Pin
Joan M29-Jan-03 4:23
professionalJoan M29-Jan-03 4:23 
GeneralRe: error C2712: Cannot use __try in functions that require object unwinding Pin
PJ Arends27-Jan-03 9:18
professionalPJ Arends27-Jan-03 9:18 
GeneralRe: error C2712: Cannot use __try in functions that require object unwinding Pin
Joan M28-Jan-03 21:16
professionalJoan M28-Jan-03 21:16 
GeneralGetDlgItem and CFormView Pin
ElizabethC27-Jan-03 6:04
ElizabethC27-Jan-03 6:04 
GeneralRe: GetDlgItem and CFormView Pin
PJ Arends27-Jan-03 6:59
professionalPJ Arends27-Jan-03 6:59 
GeneralRe: GetDlgItem and CFormView Pin
Bill Gates Antimatter Particle27-Jan-03 7:02
Bill Gates Antimatter Particle27-Jan-03 7:02 
GeneralRe: GetDlgItem and CFormView Pin
ElizabethC27-Jan-03 7:05
ElizabethC27-Jan-03 7:05 
GeneralVC++ Pin
Ravi2827-Jan-03 5:46
Ravi2827-Jan-03 5:46 
GeneralRe: VC++ Pin
Mike Nordell27-Jan-03 9:24
Mike Nordell27-Jan-03 9:24 
GeneralRe: VC++ Pin
Ravi2829-Jan-03 3:26
Ravi2829-Jan-03 3:26 
GeneralRe: VC++ Pin
Ravi2829-Jan-03 3:26
Ravi2829-Jan-03 3:26 
Generalsize of physical/virtual memory used by a process - WindowsNT/2000 Pin
alma27-Jan-03 5:42
alma27-Jan-03 5:42 
GeneralRe: size of physical/virtual memory used by a process - WindowsNT/2000 Pin
Mike Nordell27-Jan-03 9:36
Mike Nordell27-Jan-03 9:36 
GeneralRe: size of physical/virtual memory used by a process - WindowsNT/2000 Pin
alma28-Jan-03 3:59
alma28-Jan-03 3:59 
Generalremove & add a security group Pin
Member 13661827-Jan-03 5:23
Member 13661827-Jan-03 5:23 
GeneralOnInitialUpdate and SDI Pin
Haakon S.27-Jan-03 4:35
Haakon S.27-Jan-03 4:35 
GeneralRe: OnInitialUpdate and SDI Pin
HENDRIK R27-Jan-03 4:39
HENDRIK R27-Jan-03 4:39 

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.