title: How do I get a stack trace from a handled/caught exception and dump it to a trace log
body: <p>We've created a Datasnap service (with Delphi XE), using Bob Swart's white paper as a guide. It works fine, and we've deployed it to our test server.</p>
  
  <p>Now a problem occurs, when we have executed a large number of requests (through JMeter), some sort of memory corruption occurs. Some requests succeed, some fail with an access violation. In the end, it has become so corrupt, that every request to our OWN (not the DSAdmin) methods responds with an access violation. </p>
  
  <p>However, I can't get my hands on a stacktrace to get more info, because the exception is already catched in the processing of the request.</p>
  
  <p>If I test heavily with the VCL version of this application, it remains working correctly.</p>
  
  <p>Has anyone any clue what this could be, or experienced the same problem, or can you help me get the stack trace from a caught exception (in someone else's code, which I can't edit)?</p>
  
  <p>Thanks in advance.</p>