EventName parameter of TIBCAlerter eventhandler

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Boro
Posts: 21
Joined: Wed 19 Sep 2007 21:58

EventName parameter of TIBCAlerter eventhandler

Post by Boro » Wed 19 Sep 2007 22:14

Hello,

I am looking at demo project into the Alerter unit. When debugging the example in Turbo Delphi Pro and the control passes into the eventhandler

Code: Select all

TAlerterFrame.IBCAlerterEvent(Sender: TObject; EventName: String;
  EventCount: Integer);
I cannot see the value of the EventName parameter. When looking at EventName in the debug Evaluate/Modify window, there is
Symbol was eliminated by linker
Why is the EventName parameter inaccessible ?
What does it mean and how to read value of the EventName parameter, please ?

Boro

Boro
Posts: 21
Joined: Wed 19 Sep 2007 21:58

Post by Boro » Thu 20 Sep 2007 15:01

Hi,
I'v found the reason. Its simple. Delphi Compiler Optimizer recognized somehow that the eventhandler doesn't use the parameter EventName and eliminated it. Don't ask me how this works...
When turning off the optimization or when adding statement with EventName variable into the eventhandler, than the parameter Eventname starts to be accessible and supplies a string into the eventhandler.
Sorry for asking such newbie question.

Post Reply