PDA

View Full Version : GetCurrentCallStack not working


Tolyan
01-Jun-2005, 03:15 PM
Hi!
I have Program.exe, DoIt.bpl and Error.bpl, which compiled with active EurekaLog (trial 5.0.1)
I try use next constructions:
in DoIt.bpl -

...
try
...
except
on E: Exception do
begin
raise MyError.Create(E, 'bla-bla-bla')
end;
end;

in Error.bpl -

...
type
MyError = class(Exception)
...
end;
...
constructor MyError.Create(AExceptObject: Exception; AMessage: string);
var
CS: TEurekaStackList;
begin
inherited Create(AMessage);
...
CS := GetCurrentCallStack; // !!! from unit ExceptionLog
try
ShowMessage('CS.Count = ' + IntToStr(CS.Count));
finally
CS.Free;
end;
end;
...


and when execption handled in DoIt.bpl and new exception create in Error.bpl, next message was show:
CS.Count = 0
Why? :confused:
P.S.: Sorry for bad English:o
P.P.S.: bpl and exe was compiled with ecc32 and EurekaLog unit (with E*.dcu) was implicitly imported into Error.bpl... Maybe, this is the root of all evil...:confused:

Tolyan
02-Jun-2005, 10:06 AM
Anybody here? :confused:

admin
03-Jun-2005, 05:56 AM
Yes, I'm Here!

I don't understand your problem.

Can you create and send to me a little source demo capable to reproduce it, please?

Tolyan
03-Jun-2005, 01:56 PM
Yes, I'm Here!

I don't understand your problem.

Can you create and send to me a little source demo capable to reproduce it, please?
Sorry, but my "little ... demo" with two bpl and one exe is working (unlike big project :o )

And I hope complete this work with big project soon, but:

I receive error message when compiling dpr-file with ecc32:
ERROR: Cannot find the "ExceptionLog.HookedRaise" procedure.
In spite of the fact that ecc32 produce error, "small demo" exe was builded and "small demo" application is working right (I think :rolleyes: )
Send to you a little source demo nevertheless? Or you know what's happened? :)

admin
03-Jun-2005, 03:35 PM
To can add the ExceptionLog unit in a package, you need the ExceptionExpert?.dcp

Currently this file is available only in the Enterprise version, but I'm planning to add it in the Professional version from the next 5.0.2 version.

piotr.rezmer@ens.net.pl
26-Feb-2008, 07:33 PM
To can add the ExceptionLog unit in a package, you need the ExceptionExpert?.dcp

Currently this file is available only in the Enterprise version, but I'm planning to add it in the Professional version from the next 5.0.2 version.

Hello, I've checked version 6.0.12 and it seems to missing ( dcp file). Is there any way to create a package of units that call to exceptionlog unit?

best regards
Piotr Rezmer

admin
03-Mar-2008, 10:30 AM
Hi,

I have removed the .DCP files to working on a great EurekaLog packages integrations and after reinsert the .DCP files on the installer.

Why do not add this request to the suggestion forum just to see the other users think about it? :)

piotr.rezmer@ens.net.pl
03-Mar-2008, 10:46 AM
Ok, let's add to suggestion forum. I think it would be nice to be able to create components that use exceptionLog. Otherwise, it is necessary to create event handler to delegate exception handler outside the component

admin
03-Mar-2008, 01:04 PM
Hi,

yes I think so too! ;)