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
Former Member
0 Likes

If you call a Windows API function that has a string argument that is by ref and you fail to initialize the string to a size large enough to hold the result then you will get an abort.

Former Member
0 Likes

Thanks Roland, that's a great example, I'll give it a go!