2013. 2. 12. 04:34
프로그래밍/WINDOWS via C/C++
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;
}
}
}