[Lazarus] really strange messagedlg hang

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] really strange messagedlg hang

Free Pascal - Lazarus mailing list
Hello,

I have a relatively complex, multithreaded application, compiled with
lazarus 1.6.4/fpc 2.6.4 (it's the same application I reported in
fpc-devel having a problem with tthread.synchronize but I cannot find in
in the archive right now, the thread was "Suspicion about
TThread.Synchronize").

The customer is in the process of migrating their PCs still running
windows xp to windows 7 (yes, I know, I know...)

In this application, and this application only, upon the switch to
windows 7, a call to MessageDlg hangs for a long time (around one
minute) before returning. I saw that on my development machine but I
didn't mind since on the target machine it ran fine (when it was running
under windows xp that is).

It's not MessageDlg itself (in other applications migrated to windows 7
and compiled with the same lazarus/fpc versions we don't see the
problem), but some strange interaction with my application, alas I
cannot find where the problem lies.

If I recompile it with lazarus 2.0.2[*]/fpc 3.2.beta (cannot use 3.0.2
due to the above mentioned thread issue) the problem disappears.

Any idea?

[*] would somebody pleas take a look at this bug? The solution seems
simple but I'm not sure it's correct.
https://bugs.freepascal.org/view.php?id=35646


Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] really strange messagedlg hang

Free Pascal - Lazarus mailing list
El 31/5/19 a les 17:16, Luca Olivetti via lazarus ha escrit:

> If I recompile it with lazarus 2.0.2[*]/fpc 3.2.beta (cannot use 3.0.2
> due to the above mentioned thread issue) the problem disappears.

It also disappears (with lazarus 1.6.4/fpc 2.6.4) if I turn off the
option "use manifest file to enable themes"

> Any idea?

The question still stands. Maybe a bug with themes in lazarus 1.6.4?

Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] really strange messagedlg hang

Free Pascal - Lazarus mailing list
El 1/6/19 a les 12:18, Luca Olivetti via lazarus ha escrit:

> El 31/5/19 a les 17:16, Luca Olivetti via lazarus ha escrit:
>
>> If I recompile it with lazarus 2.0.2[*]/fpc 3.2.beta (cannot use 3.0.2
>> due to the above mentioned thread issue) the problem disappears.
>
> It also disappears (with lazarus 1.6.4/fpc 2.6.4) if I turn off the
> option "use manifest file to enable themes"
>
>> Any idea?
>
> The question still stands. Maybe a bug with themes in lazarus 1.6.4?

Nobody?

Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] really strange messagedlg hang

Free Pascal - Lazarus mailing list
On 10/06/2019 12:40, Luca Olivetti via lazarus wrote:

> El 1/6/19 a les 12:18, Luca Olivetti via lazarus ha escrit:
>> El 31/5/19 a les 17:16, Luca Olivetti via lazarus ha escrit:
>>
>>> If I recompile it with lazarus 2.0.2[*]/fpc 3.2.beta (cannot use
>>> 3.0.2 due to the above mentioned thread issue) the problem disappears.
>>
>> It also disappears (with lazarus 1.6.4/fpc 2.6.4) if I turn off the
>> option "use manifest file to enable themes"
>>
>>> Any idea?
>>
>> The question still stands. Maybe a bug with themes in lazarus 1.6.4?
>
> Nobody?

There were several issues in fpc thread sync related code. Not sure if
any of those may be related to your issue.

https://bugs.freepascal.org/view.php?id=35027
https://bugs.freepascal.org/view.php?id=35028
https://bugs.freepascal.org/view.php?id=34640
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] really strange messagedlg hang

Free Pascal - Lazarus mailing list
El 10/6/19 a les 12:50, Martin Frb via lazarus ha escrit:

> On 10/06/2019 12:40, Luca Olivetti via lazarus wrote:
>> El 1/6/19 a les 12:18, Luca Olivetti via lazarus ha escrit:
>>> El 31/5/19 a les 17:16, Luca Olivetti via lazarus ha escrit:
>>>
>>>> If I recompile it with lazarus 2.0.2[*]/fpc 3.2.beta (cannot use
>>>> 3.0.2 due to the above mentioned thread issue) the problem disappears.
>>>
>>> It also disappears (with lazarus 1.6.4/fpc 2.6.4) if I turn off the
>>> option "use manifest file to enable themes"
>>>
>>>> Any idea?
>>>
>>> The question still stands. Maybe a bug with themes in lazarus 1.6.4?
>>
>> Nobody?
>
> There were several issues in fpc thread sync related code. Not sure if
> any of those may be related to your issue.
>
> https://bugs.freepascal.org/view.php?id=35027
> https://bugs.freepascal.org/view.php?id=35028
> https://bugs.freepascal.org/view.php?id=34640

No, I was not referring to the thread problem I had with 3.0.4.
I *never* had thread problems with 2.6.4 and (crossing fingers) my
problems seems to be fixed in 3.2.x.
The problem was messagedlg hanging for a minute or more with lazarus
1.6.4/fpc 2.6.4 under win32 and manifest file enabled.

Bye
--
Luca Olivetti Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus