Code tools defines editor ... Insert template crashes IDE
Original Reporter info from Mantis: ludob
-
Reporter name: Ludo Brands
Original Reporter info from Mantis: ludob
- Reporter name: Ludo Brands
Description:
Select any template and IDE crashes with Access violation.
Narrowed the problem down to TInputFileDialog.Create. rsFormResourceSNotFoundForResourcelessFormsCreateNew is raised in TCustomForm.Create and causes TInputFileDialog.Destroy to execute immediately. DeleteAllLabels references FInputLabels which hasn't been created yet => access violation.
The problem has been introduced with the introduction of rsFormResourceSNotFoundForResourcelessFormsCreateNew exception and RequireDerivedFormResource that is set to True in lazarus.pp. When TInputFileDialog.Create is modified to
constructor TInputFileDialog.Create(TheOwner: TComponent);
begin
RequireDerivedFormResource:=false ;
inherited Create(TheOwner);
RequireDerivedFormResource:=true;
the problem is solved. I don't know why RequireDerivedFormResource was introduced and set to true for lazarus. Hence, I guess the above work around is just that and not the best solution.
Mantis conversion info:
- Mantis ID: 19389
- Version: 0.9.31 (SVN)
- Fixed in version: 0.9.31 (SVN)
- Fixed in revision: 30831 (#90fa711a)