[Lazarus] Application slow shutting down

Susie Nicol susie.k.nicol at gmail.com
Wed Sep 30 10:01:46 CEST 2015


On Wed, Sep 30, 2015 at 8:28 PM, Gordon Cooper <hughgordont at gmail.com>
wrote:

>
>
>> 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.
>

Hi Gordon - thanks for replying

OpenSuse, 13.2, with XFCE 4.10

Susie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150930/a4196f56/attachment-0003.html>


More information about the Lazarus mailing list