Search found 12 matches

by Vitalik
Sat Sep 12, 2020 8:27 am
Forum: madExcept
Topic: Nested Exception
Replies: 17
Views: 18206

Re: Nested Exception

Let me explain with an example Here are exception classes I'm going to use: ESQLException = class(ExceptionFields) public constructor Create(const Msg, SQL: string); overload; constructor Create(AExceptObject: TObject; const SQL: string); overload; end; constructor ESQLException.Create(const Msg, SQ...
by Vitalik
Sat Sep 12, 2020 4:49 am
Forum: madExcept
Topic: Nested Exception
Replies: 17
Views: 18206

Re: Nested Exception

Hi! I would like to join this old descussion to add a case that explaines why I do need innerExceptions So I have an exception class ExceptionFields that contains a set of field-value pairs that I add to bug report. This happens in the code that is called indirectly from exception handler that I reg...
by Vitalik
Sat Nov 06, 2010 2:07 pm
Forum: madExcept
Topic: Create COM objects from error handlers
Replies: 2
Views: 2589

Create COM objects from error handlers

I registered error handler by this way:
RegisterExceptionHandler(MainExceptionHandler, stTrySyncCallOnSuccess);

And then I'm trying to create COM object from MainExceptionHandler. But I get error with code 8001010D.

Is there suggestions how to avoid this error?

Thank you!
by Vitalik
Mon Aug 02, 2010 8:19 am
Forum: madExcept
Topic: How add my content into stacktrace?
Replies: 3
Views: 3904

Hi! I have try to register exceptions handler with epCompleteReport parameter, but I still have troubles. When I try to get BugReport as string (to save its in file) my application hang: StoreBugReportToFile(ReportPath + cReportFile, exceptIntf.BugReport); Application is freeze on exceptIntf.BugRepo...
by Vitalik
Fri Jun 25, 2010 8:21 am
Forum: madExcept
Topic: command line compilation: line numbers
Replies: 8
Views: 5590

Well yes, your configs works fine. It seems I should exclude my directives from dcc32.cfg.
by Vitalik
Fri Jun 25, 2010 4:50 am
Forum: madExcept
Topic: command line compilation: line numbers
Replies: 8
Views: 5590

Sorry.
But today I try to compile my projects without $A on other machine and line numbers is not appeared. So this is not helps :(
by Vitalik
Thu Jun 24, 2010 8:20 pm
Forum: madExcept
Topic: command line compilation: line numbers
Replies: 8
Views: 5590

No it was magic. And it's ended.
by Vitalik
Mon Jun 21, 2010 10:26 am
Forum: madExcept
Topic: command line compilation: line numbers
Replies: 8
Views: 5590

This is my DCC32.cfg: -$A+ -$B- -$C+ -$D- -$G+ -$H+ -$I+ -$J- -$L- -$M- -$O+ -$P+ -$Q- -$R- -$T- -$U- -$V+ -$W- -$X+ -$Y2 -GD -DmadExcept -H -W -K$41000000 -E"out" -U"src" -R"res" -I"includes" -B -M16384,1048576 -N"dcu" I don't know why, but line num...
by Vitalik
Fri Jun 18, 2010 8:54 pm
Forum: madExcept
Topic: How add my content into stacktrace?
Replies: 3
Views: 3904

The purpose is implementation exceptions wich takes the cause of exception in constructor. Its just like Throwable in Java ( http://java.sun.com/javase/6/docs/api/java/lang/Throwable.html#Throwable(java.lang.Throwable) ). So I have write EChainException: EChainException = class(Exception) private FC...
by Vitalik
Tue Jun 15, 2010 8:17 am
Forum: madExcept
Topic: How add my content into stacktrace?
Replies: 3
Views: 3904

How add my content into stacktrace?

hi! I need to find in IMEException trace of stack of thread in which error is occure and add several lines into. I have try this: const CurThreadStackItem = 0; var CE: EChainException; Header: string; StackContent: string; begin CE := exceptIntf.ExceptObject as EChainException; if CE.Cause <> '' the...
by Vitalik
Tue Jun 15, 2010 5:49 am
Forum: madExcept
Topic: command line compilation: line numbers
Replies: 8
Views: 5590

command line compilation: line numbers

Hi! I compile my delphi project from command line using -gd directive and madExceptPatch.exe. But bugreports is not contain line numbers. If I compile the same project from IDE with the same .mes file I can see line numbers. So I can assume that line numbers can be received in both cases. What I sho...
by Vitalik
Tue Oct 27, 2009 8:59 pm
Forum: madExcept
Topic: When my Except Action Handler will fired?
Replies: 1
Views: 2674

When my Except Action Handler will fired?

Hi! I just ask to be shure. I want to send the error reports directly to database (if is possible). So, lets imagine my code. First of all, I need to write and register handler: procedure MainExceptionActionHandler(Action: TExceptAction; const ExceptIntf: IMEException; var Handled: boolean); begin i...