View Single Post
client21
Senior Member
Join Date: Apr 2013
Old 12-09-2017 , 17:16   Re: 'try' 'cath' not work
Reply With Quote #4

PHP Code:
bool MyClass::SDK_OnLoad(char *errorsize_t maxlengthbool late)
{
    try
    {
        
g_pSM->LogError(myself"1");
        
char c[1];
        
sprintf(c"12345");
        
c[4294967297] = 5;
        
g_pSM->LogError(myself"2");
    }
    catch(...)
    {
        
g_pSM->LogError(myself"3");
    }
    
g_pSM->LogError(myself"4");
    return 
true;

result:
1

Even 'catch' not called. Stupid world.

Last edited by client21; 12-09-2017 at 17:16.
client21 is offline