SynEdit only works with Application instance created by Forms
Original Reporter info from Mantis: Christian
-
Reporter name:
Original Reporter info from Mantis: Christian
- Reporter name:
Description:
Its a bit ugly issue,
Synedit creats an SynDefaultBeautifier in his initialization section
Forms creates TApplication in his initialization Section
since i have some additions to TApplication i free the instance of TApplication created by Forms in my main project unit and cerate an own. But until now Synedit and everything its used by (at example Lazreport ...) dosend work correct becouse SynDefaultBeautifier has an invalid Owner. SynDefaultBeautifier shouldnt be cerated in the initialization of synedit i think its better to create it in .Create of TSynEdit.
Also its ugly that Forms creates the instance of TApplication in my opinion this should be done in the Main Unit
Example:
Application := TApplication.Create(nil);
Application.Initialize;
Application.CreateForm(TfMain, fMain);
Application.Run;
But i see that this would break delphi compatibility.
Mantis conversion info:
- Mantis ID: 18862
- Version: 0.9.31 (SVN)
- Fixed in version: 0.9.31 (SVN)
- Fixed in revision: 30008 (#4aaa8ceb)
- Target version: 0.99.0