블로그 이미지
대갈장군

calendar

1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

Notice

'프로그래밍/WINDOWS via C/C++'에 해당되는 글 1

  1. 2013.02.12 __try / __finally / AbnormalTermination()

DWORD DoSomething() 

{

__try

{

// Do something

}


__finally

{

// Release Global Resource

if(!AbnormalTermination())

{

// __try went well 

// No problem

}

else

{

// Global or local unwinding happended due to error

// Global unwinding: Memory access violation

// Local unwinding: continue; break;

}

}

}

posted by 대갈장군
prev 1 next