EControl Ltd. Forum Index EControl Ltd.
VCL libraries and software support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Loaded TSyntaxManager in Frames

 
Post new topic   Reply to topic    EControl Ltd. Forum Index -> EControl Syntax Editor
View previous topic :: View next topic  
Author Message
itsatomic



Joined: 12 Jun 2006
Posts: 38

PostPosted: Mon Feb 12, 2007 10:33 pm    Post subject: Loaded TSyntaxManager in Frames Reply with quote

I have a frame with various components on it, including a TSyntaxManager control. I have loaded the TSyntaxManager with a lex file.

Now, when I open a project where that frame is being used (in the main form), it generates an error:

Access violation at address XXXXXX in module 'rtl70.bpl'. Read of address 00000018. Ignore the error and continue? etc etc.

then:

---------------------------
Error
---------------------------
Error creating form: Access violation at address 00000000. Read of address 00000000.
---------------------------
OK
---------------------------

---------------------------------------------------------------------------------


To test this, I created a simple frame, containing only a TSyntaxManager, and used that frame, opened the project - no error. I then loaded the lex file into the TSyntaxManager (of the frame) and reopened the project which uses the frame - error occurs.

A pre-loaded TSyntaxManager on the form by itself seems to work fine.

Hope this provides enough info to locate / fix the bug.

Thanks
Aaron
Back to top
View user's profile Send private message
econtrol
Site Admin


Joined: 09 Jun 2006
Posts: 202

PostPosted: Tue Feb 13, 2007 4:18 am    Post subject: Reply with quote

Fixing (ecSyntAnal.pas):

Remove property DefaultStyle from TSyntAnalyzer. This property is obsolete and it is a reason of this bug.

TSyntAnalyzer = class(TLoadableComponent)
...
// property DefaultStyle: TSyntaxFormat read GetDefaultStyle stored False;
...
end;

Michael.
Back to top
View user's profile Send private message Send e-mail
itsatomic



Joined: 12 Jun 2006
Posts: 38

PostPosted: Thu Feb 15, 2007 7:00 am    Post subject: Reply with quote

Thanks that worked.

Aaron
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    EControl Ltd. Forum Index -> EControl Syntax Editor 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, 2005 phpBB Group