Lobuno
Lobuno

Reputation: 1405

Delphi 2010 buttons losing click event

I've been experimenting a quite strange problem using Delphi 2010. In one form (a quite complex one) some buttons are automagically losing the click event. I am not dynamically assigning the event or something (they are wired in IDE). The events are fired OK some times but suddenly (and randomly) some of them don't fire the events anymore. Placing a break point in the event doesn't stop the execution.

Weird, yes, and I'm lost. I know there is no explanation for this so I only want to ask if there is anybody else experimenting the same problem.

Upvotes: 2

Views: 420

Answers (2)

Chris Thornton
Chris Thornton

Reputation: 15817

Check for multiple .dcu files in different directories. It may be picking up an older one. I've found that if you're stepping through the debugger and the code seems mis-aligned to the execution (especially if it's stepping through lines that aren't actually instructions, like begin/end or comments), then you've got an old .DCU or .BPL.

Upvotes: 1

Semyon.Khmelev
Semyon.Khmelev

Reputation: 197

May be that events have't code and losing during compilation?

Upvotes: 0

Related Questions