91
Generale / Re:Run Error (216) - General protection fault
« Ultimo post da slapshot il Marzo 27, 2024, 05:53:30 pm »Probabilmente ha sempre a che fare con le risorse della form:
Prelevato da qui: https://wiki.lazarus.freepascal.org/Lazarus_1.0_release_notes#TCustomForm.Create_raises_an_exception_if_resource_is_not_found:
Però a questo punto cercherei di mettere ordine nel progetto e nel numero delle form e unit da usare.
Citazione
TCustomForm.Create raises an exception if resource is not found
Reason: Each form created by the IDE should have a resource, so if resource is not found there is something wrong with either a resource or the unit which contains the faulty form. Therefore the application should inform the developer that the form can't function correctly without the resource. This change is also Delphi compatible and compatible with TFrame and TDataModule components.
Remedy: If you need a resourceless form you have 3 options:
Create a TForm class (not a descendant)
Construct your form using the CreateNew() constructor.
It is also possible to disable the exception by setting the global variable RequireDerivedFormResource to False.
Prelevato da qui: https://wiki.lazarus.freepascal.org/Lazarus_1.0_release_notes#TCustomForm.Create_raises_an_exception_if_resource_is_not_found:
Però a questo punto cercherei di mettere ordine nel progetto e nel numero delle form e unit da usare.