Hi,
I have a problem with the SynGen.
I compiled it with Delphi 2009 but if i try to generate the highlighter in the demo directory Delphi shows an access violation error.
Can somebody send me a SynGen.exe that works?
SynGen Access Violation Error
Re: SynGen Access Violation Error
I found the error.
File: SynGenUnit.pas
Line: 563
Replace "Lex.Origin := Stream.Memory;" with "Lex.Origin := PWideChar(String(PAnsiChar(Stream.Memory)));"
and compile.
Now it should work.
File: SynGenUnit.pas
Line: 563
Replace "Lex.Origin := Stream.Memory;" with "Lex.Origin := PWideChar(String(PAnsiChar(Stream.Memory)));"
and compile.
Now it should work.
Re: SynGen Access Violation Error
Do you use Unicode SynEdit?
There is no such line in the Unicode version of SynGenUnit.pas.
Use Unicode SynEdit instead. Just making something compile or casting is not enough, it merely hides the errors.
There is no such line in the Unicode version of SynGenUnit.pas.
Use Unicode SynEdit instead. Just making something compile or casting is not enough, it merely hides the errors.
Re: SynGen Access Violation Error
Hm, you are right the SynGen part seems to be from the Ansi version.
I'll upload the package again.
I'll upload the package again.
Re: SynGen Access Violation Error
Ok I updated the ZIP-package.