goat3d
diff exporters/maxgoat_stub/src/stub.cc @ 66:3751aabbc5b3
igame animation api is weird...
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 19 Apr 2014 07:56:43 +0300 |
parents | 0c3576325480 |
children | 9862541fdcf5 |
line diff
1.1 --- a/exporters/maxgoat_stub/src/stub.cc Tue Apr 01 13:11:04 2014 +0300 1.2 +++ b/exporters/maxgoat_stub/src/stub.cc Sat Apr 19 07:56:43 2014 +0300 1.3 @@ -143,7 +143,14 @@ 1.4 goto done; 1.5 } 1.6 1.7 - result = ex->DoExport(name, eiface, iface); 1.8 + __try { 1.9 + result = ex->DoExport(name, eiface, iface); 1.10 + } 1.11 + __except(EXCEPTION_EXECUTE_HANDLER) { 1.12 + fprintf(logfile, "Exception caught!\n"); 1.13 + delete ex; 1.14 + goto done; 1.15 + } 1.16 delete ex; 1.17 1.18 if((shutdown = (PluginShutdownFunc)GetProcAddress(dll, "LibShutdown"))) {