[fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.
giuliano.colla at fastwebnet.it
Mon Feb 11 16:10:11 CET 2013
On 02/11/2013 01:34 PM, Graeme Geldenhuys wrote:
> On 2013-02-11 11:29, Giuliano Colla wrote:
>> This is true only if you invoke the program from command line, which is
>> something the end user will never do.
> Wrong. This is something you are doing wrong in your GUI application
> then. I have loads of fpGUI 'gui' applications, that report exceptions
> just fine to the use - no matter how they launched that application.
I agree with you. I just followed blindly the myriad of examples which
surround with a try..finally the statements after a TIniFile.Create, to
ensure that TIniFile.Free is executed, forgetting that in a GUI
application this is not the proper way to do it.
With a try..except any error in between would be properly handled, and
Free may be called safely as required.
More information about the fpc-pascal