View previous topic :: View next topic |
Author |
Message |
itsatomic
Joined: 12 Jun 2006 Posts: 38
|
Posted: Mon Feb 12, 2007 10:33 pm Post subject: Loaded TSyntaxManager in Frames |
|
|
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 |
|
|
econtrol Site Admin
Joined: 09 Jun 2006 Posts: 202
|
Posted: Tue Feb 13, 2007 4:18 am Post subject: |
|
|
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 |
|
|
itsatomic
Joined: 12 Jun 2006 Posts: 38
|
Posted: Thu Feb 15, 2007 7:00 am Post subject: |
|
|
Thanks that worked.
Aaron |
|
Back to top |
|
|
|