BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Little fix for David Knaack's better Bold Debugger

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Model Driven Architecture (General)
View previous topic :: View next topic  
Author Message
samuel herzog
Guest





PostPosted: Mon Nov 06, 2006 9:11 am    Post subject: Little fix for David Knaack's better Bold Debugger Reply with quote



Hi,
here is a fix for possible troublemaker.
If you use the better bold debugger and some other components that do hook
into the OnMessage then
you may have experienced some runtime error 216 or 217 when closing your
application.

The assertion was usually rised in procedure TMultiCaster.HookOff; of unit
AppEvnts.

Here comes the fix for unit <uSystemMenuHandler.pas>.

procedure TSystemMenuHandler.HookOnMessage;
var
localEvent: TMessageEvent;
begin
localEvent := MessageHandler;
if (TMethod(Application.OnMessage).Code <> TMethod(localEvent).Code)
and (not assigned(OriginalOnMessage)) then begin // <<---fix
OriginalOnMessage := Application.OnMessage;
Application.OnMessage := MessageHandler
end;
end;
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Model Driven Architecture (General) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.