[Lazarus] Application slow shutting down
Gordon Cooper
hughgordont at gmail.com
Wed Sep 30 09:28:06 CEST 2015
>
> On Wed, 30 Sep 2015, Susie Nicol wrote:
>
>> Hi
>>
>> I have an application with a main form, and several others whuich are
>> only
>> ever used in modal form.
>>
>> The application is slow to terminate, and I cannot see why. The
>> shutdown
>> procedure, simplified a little looks like this: (datamodified a global
>> Boolean; savedata another procedure in the same unit; the
>> SQLcomponents are
>> in a a data module)
>>
>> procedure FinishUp;
>>
>> begin
>> if datamodified then
>> savedata;
>>
>> sqltransaction1.commit;
>> sqlconnection.close(True);
>>
>> Application.Terminate {line A}
>>
>> end;
>>
>> The debugger shows me that everything is fine until line A, when the
>> program hangs: often for 15 seconds, sometimes for ever.
>>
>> XFCE on Linux complains that the window containing the main form
>> cannot be
>> closed because 'the application may be busy'.
>>
>> I have tried to replace line A with 'halt' or 'close' without any
>> difference. The connection to the database is indeed closed.
>
> Susie,
You said Linux with xcfe, but which version of LInux?
Some of them
behave quite differently from others.
Gordon.
--
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
More information about the Lazarus
mailing list