Page 1 of 1

EventName parameter of TIBCAlerter eventhandler

Posted: Wed 19 Sep 2007 22:14
by Boro
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

Posted: Thu 20 Sep 2007 15:01
by Boro
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.