cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

We're having troubles with application crashes, some are probably due to PowerBuilder itself, many are probably due to our code having issues under certain circumstances. So I have the following questions:

1. Does anyone know if it possible to put a try... catch... around say the application open event and therefore catch all unexpected crashes? In which case we may be able to log the error and at least exit gracefully in some manner

2. Does anyone know a way of making Powerbuilder crash on command? I mean the PBVM itself? I was thinking to try a divide by zero error, but I assume this is captured by the PBVM itself and handled more gracefully than a PBVM crash. I guess I could just create a zillion datastores until Windows runs out of memory.

Thanks

0 Likes
View Entire Topic
arnd_schmidt
Active Contributor
0 Likes

Typically you get a GPF when the call stack explodes because of too much recursion depth, like:

public subroutine of_gpf ()

  of_GPF()

end subroutine

Sure... that is bad PowerBuilder Code. But you never know, when it blows up.

Former Member
0 Likes

Good idea thanks