It seams to work fine with D7 but i'm not able to compile it wiht D5.
I allways receive this message:
[Error] ExceptLog.pas(138): Undeclared identifier: 'RTLUnwindProc'
Can You Help?
Thanks in advance
Mário
> Mario
RTLUnwindProc is a normal pointer, it is initialized with the windows
API RTLUnwind.
interface
const
kernel = 'kernel32.dll';
var
RTLUnwindProc: Pointer;
implementation
procedure RtlUnwind; stdcall; external kernel name 'RtlUnwind';
initialization
RTLUnwindProc := @RTLUnwind;
end.
--
Pieter
> RTLUnwindProc is a normal pointer, it is initialized with the windows
> API RTLUnwind.
In D7, yes, but not in D5.
--
-Mike (TeamB)
> > RTLUnwindProc is a normal pointer, it is initialized with the
> > windows API RTLUnwind.
>
> In D7, yes, but not in D5.
Yes, I know, that's why I gave the rest of the information :)
--
Pieter
> It seams to work fine with D7 but i'm not able to compile it wiht D5.
That download page specifically states that it was tested with D7 only.
> I allways receive this message:
>
> [Error] ExceptLog.pas(138): Undeclared identifier: 'RTLUnwindProc'
RTLUnwindProc does not exist in D5. It was introduced in D6. That code
will not be able to function in D5 at all unless you re-write it to hook the
imported RtlUnwind() function directly.
Otherwise, I suggest you use another exception logger, such as MadExcept
(http://www.madexcept.com), which is known to work in many Delphi (and C++)
versions.
Gambit
"Pieter Zijlstra" <p.zylstr...@hccnet.nl> escreveu na mensagem
news:xn0fnnar...@newsgroups.borland.com...
> I'm sorry! Now it compiles without erros but it doesn't
> seam to work. Nothing is writen to error_log_file.
> Why?
As I mentioned in my earlier reply, D5 simply does not offer the kind of
hooking that ExceptLog is trying to use. Just defining your own
RTLUnwindProc variable like Pieter suggested is not going to change that.
ExceptLog will not function properly in D5 unless you re-write it. So
either upgrade to D6+ in order to use ExceptLog, or else use a different
exception tracker that supports D5, such as MadExcept
(http://www.madexcept.com).
Gambit
> > I'm sorry! Now it compiles without erros but it doesn't
> > seam to work. Nothing is writen to error_log_file.
> > Why?
>
> As I mentioned in my earlier reply, D5 simply does not offer the kind
> of hooking that ExceptLog is trying to use. Just defining your own
> RTLUnwindProc variable like Pieter suggested is not going to change
> that.
Mario,
sorry for confusing you, I didn't look how RTLUnwindProc is used in
Delphi and/or Exceptlog. Like Remy already said it's not going to work
by just adding the definitions.
--
Pieter