Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Get Full Call Stack in Delphi Server Application

I have a multi-tier software that is two application(GUI,DataSnap Server) . My DataSnap server application has a bug cause occur EAccessViolation in Some times. such this :

Exception EAccessViolation  in module unidac160.bpl at 00010CB1.
Access Violation at 002B77832 in module unidac160.bpl. Read of  address 0000000C

I want get full Call Stack and log that in file. also i use eurekalog but it is effective just for gui application.

like image 837
MajidTaheri Avatar asked May 03 '12 05:05

MajidTaheri


3 Answers

EurekaLog is extremely effective for all applications. Just configure it so that it will log the exceptions to a file and doesn't display exception dialogs at all.

like image 51
Harriv Avatar answered Nov 10 '22 08:11

Harriv


Our Open-Source logging classes have an exception interceptor with full call stack, including source code lines.

The debugging information is highly compressed (better than zip or any other formats), optionally into the exe.

Open Source, works with Delphi 5 up to XE2.

In its latest version (use the one from the source code repository - i.e. currently 1.16), it is also able to log exceptions within libraries (i.e. within .dll or .bpl), as your request explicitly state.

There are other features, like customer-side profiling, which may help your customer support, and application enhancements, from real data (not only in test benchs).

like image 7
Arnaud Bouchez Avatar answered Nov 10 '22 10:11

Arnaud Bouchez


You can also use MadExcept to get the stack for your application. Here you have a similar question madExcept, getting top of current stack

Also, related to your question this can also help you

Display the call stack in a Delphi Win32 application

like image 4
RBA Avatar answered Nov 10 '22 10:11

RBA