Lazarus
Programming => Operating Systems => Windows => Topic started by: deblaz on August 17, 2019, 12:23:29 am
-
Hi, I have a problem with Windows 10 Enterprise after an update the 32-bit program is suspended in show and hide form.
some component cannot be accessed, for example mainmenu, treeview
I suspect this is the problem: https://blogs.windows.com/windowsdeveloper/2016/04/28/the-lifecycle-of-a-uwp-app/
Any help is welcome!
-
Lazarus programs are not UWP, so I don't think that is related.
-
Antivirus issue? Put Lazarus and project folders on the white-list of the virus scanner.
-
No antivirus issue... I use uniqueinstance and trayicon...
-
A) which fpc and lazarus ?
B) is the focus working with the tabulator key ?
C) have you used capturing of keys or a spezial messageqeuce?
D) try to deactivate trayicon
E) make a simple testprogram to show if this is not programmrelated
-
A) 3.0.4 - 2.0.2
B) do not
C) yes
D) same problem
E) is program related
I use TTelnetSSHClient and while for capture commands that I send to ssh server, it runs well in other versions of windows.
-
If B not working and C is activated - is the capturing working correctly ?
after an update the 32-bit program is suspended in show and hide form.
some component cannot be accessed, for example mainmenu, treeview
It looks like your capturing code is not handling or dispatching the events correctly. Maybe the update changes some messages a little or change the sequenze. If the handling depends of a special sequenze and now tit is out of the expected order, such nice effects araise.
Without some code it is only looking in a glass sphere.
-
solve the problem using threads, the problem was in application.processmessage did not allow to refresh the gui.
thanks for the help af0815, wp, marcov!
-
May be its a virus issue. you need to install a antivirus and scan it