Lazarus

Programming => Operating Systems => Windows => Topic started by: deblaz on August 17, 2019, 12:23:29 am

Title: Windows 10 suspend!
Post 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!
Title: Re: Windows 10 suspend!
Post by: marcov on August 17, 2019, 12:54:17 am
Lazarus programs are not UWP, so I don't think that is related.
Title: Re: Windows 10 suspend!
Post by: wp on August 17, 2019, 11:10:56 am
Antivirus issue? Put Lazarus and project folders on the white-list of the virus scanner.
Title: Re: Windows 10 suspend!
Post by: deblaz on August 21, 2019, 02:25:47 pm
No antivirus issue...  I use uniqueinstance and trayicon...
Title: Re: Windows 10 suspend!
Post by: af0815 on August 21, 2019, 03:57:46 pm
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
Title: Re: Windows 10 suspend!
Post by: deblaz on August 26, 2019, 11:54:14 pm
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.
Title: Re: Windows 10 suspend!
Post by: af0815 on August 27, 2019, 08:27:20 am
If B not working and C is activated - is the capturing working correctly ?

Quote
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.   
Title: Re: Windows 10 suspend!
Post by: deblaz on August 28, 2019, 11:39:09 pm
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!
Title: Re: Windows 10 suspend!
Post by: neerajsati on April 16, 2020, 05:43:42 am
May be its a virus issue. you need to install a antivirus and scan it
TinyPortal © 2005-2018