From: Story, L. <Lenny.Story@Alcatel.com> - 2003-02-03 16:20:05
|
Greetings, I am getting an assert (below), which is puzzling me. I am using Borland Builder 5, and TCustomSynEdit. I am not really using many of the features of this control as yet. Can anyone tell my how to fix this ? Assert Information : ----------------------------------------------------- SynTextDrawer.pas : Line 419 - ASSERT(1 = PheSharedFontsInfo(FFontsInfo[FFontsInfo.Count - 1])^.RefCount); My Code : ----------------------------------------- TCustomSynEdit *DisplayText; DisplayText = new TCustomSynEdit(this); DisplayText->Parent = this; DisplayText->AlwaysShowCaret = true; DisplayText->ReadOnly = true; DisplayText->OnSpecialLineColors = &DisplayTextSpecialLineColors; ((TSynEdit *)DisplayText)->PopupMenu = TextPopupMenu; ((TSynEdit *)DisplayText)->OnDblClick = &DisplayTextDblClick; ((TSynEdit *)DisplayText)->OnMouseDown = &SynEdit1MouseDown; Thanks ! -Lenny Lenny.Story@Alcatel.com |