Hi Johan,
Several approaches you can, and should, take to debugging this.
a) turn on logging to disk. This allows you to see the requests in the log, and determine what was happening right before the crash.
b) monitor machine resources, especially perhaps memory used by the program.
c) Add a p_web.trace call at specific places so you can narrow down the general area of the problem For example, if you are generating a report then I'd definitly add a TRACE call at the start and end of that to determine if the crash is in there. Be sure to include the THREAD() number though, and read the og carefully, because you might have multiple reports being generated at the same time. (so Start, Start before End, End etc..)
d) Connection problems between your server and the SqlServer can manifest by the exe terminating. So if you have any custom SQL code, especially prop:sql code, then put trace statements around that.
Trace Statements go to Debugview.
Cheers
Bruce