How can I log the callstack with JCL without using raise exception

4.3k Views Asked by At

Background

We have a problem that sometimes the grid in Devexpress raise exception "Raised EConvertError: Cannot assign a nil to a TFont".

But to trace the real cause of this we have changed Font in cxEdit to be a public property instead with a get and set method. Here I want to log the callstack.

My question

Normally JCL is used to log callstacks when exceptions appear. But how can I log the callstack without using raise exception and show a dialog for the user about this ?

I have found the lines:

var
  GlobalStackList: TJclGlobalStackList;

in JclDebug but I fail to use it. If someone have a example how to get the callstack I would be happy.

Regards Roland Bengtsson

1

There are 1 best solutions below

0
On BEST ANSWER

This answer shows how to do it with JCL by calling JclCreateStackList.