EurekaLog newsgroups
Go Back   EurekaLog newsgroups > Support > General
Reply
 
Thread Tools Display Modes
  #1  
Old 27-Mar-2006, 12:22 PM
Mark Hutchinson
Guest
 
Posts: n/a
Default Disable the call stack for certain exceptions.

Is it possible to disable recording the call stack for certain exceptions.
These would be custom exceptions.
Thanks.
Reply With Quote
  #2  
Old 27-Mar-2006, 02:27 PM
admin
Guest
 
Posts: n/a
Default Re: Disable the call stack for certain exceptions.

Hi,

Mark Hutchinson wrote:
> Is it possible to disable recording the call stack for certain exceptions.
> These would be custom exceptions.
> Thanks.


Yes, there are different methods.

The more simple is add the exception type you want ignore in the
"Project/EurekaLog Options.../Exceptions" Tag, leaving the message field
empty.

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!
Reply With Quote
  #3  
Old 27-Mar-2006, 10:45 PM
Mark Hutchinson
Guest
 
Posts: n/a
Default Re: Disable the call stack for certain exceptions.

Ok, thanks.

However, I'm not sure this is quite what I'm looking for. I still want to
record the error and the information on the General Tab (including custom
data), but don't need the information on the other tabs such as the call
stack. Really what I am trying to do is to minimize the size of the error
file when it is emailed by exluding information that I do not need to save.

If I understand correctly the method you have suggested will not record the
exception at all.

Thanks.
Reply With Quote
  #4  
Old 28-Mar-2006, 08:15 AM
admin
Guest
 
Posts: n/a
Default Re: Disable the call stack for certain exceptions.

Hi,

Mark Hutchinson wrote:
> Ok, thanks.
>
> However, I'm not sure this is quite what I'm looking for. I still want to
> record the error and the information on the General Tab (including custom
> data), but don't need the information on the other tabs such as the call
> stack. Really what I am trying to do is to minimize the size of the error
> file when it is emailed by exluding information that I do not need to save.
>
> If I understand correctly the method you have suggested will not record the
> exception at all.
>
> Thanks.


Yes, it's so.

Currently to reduce the Log file size you can only choose if
include/exclude the Modules and CPU section via "Project/EurekaLog
Options.../Log File/Save Modules/CPU Section" or at run-time with the
following code:


uses
ExceptionLog, ECore;

procedure TForm1.EurekaLog1ExceptionNotify(
EurekaExceptionRecord: TEurekaExceptionRecord; var Handled: Boolean);
begin
with EurekaExceptionRecord do
begin
if (ExceptionObject is YOUR_EXCEPTION_TYPE) then
CurrentModuleOptions.LogOptions :=
(CurrentModuleOptions.LogOptions - [loSaveModulesSection] -
[loSaveCPUSection])
else
CurrentModuleOptions.LogOptions :=
(CurrentModuleOptions.LogOptions + [loSaveModulesSection] +
[loSaveCPUSection]);
end;
end;



--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shrinked Call-Stack tmcdos Bugreports 17 22-Sep-2010 06:51 PM
disable IDE exceptions MerijnB Suggestions 3 09-Jun-2009 01:57 PM
Call stack improvments Yams Suggestions 3 08-Aug-2008 10:29 AM
Call Stack is Always Empty Larry Maturo General 13 19-Feb-2007 08:57 AM
using EL to get call stack info MerijnB Suggestions 3 11-Apr-2006 11:28 AM

All times are GMT. The time now is 12:08 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © EurekaLab s.a.s. - VAT ID: IT05554520824