Recent

Author Topic: Windows 10 suspend!  (Read 576 times)

deblaz

  • Newbie
  • Posts: 4
Windows 10 suspend!
« 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!

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7353
Re: Windows 10 suspend!
« Reply #1 on: August 17, 2019, 12:54:17 am »
Lazarus programs are not UWP, so I don't think that is related.

wp

  • Hero Member
  • *****
  • Posts: 6136
Re: Windows 10 suspend!
« Reply #2 on: August 17, 2019, 11:10:56 am »
Antivirus issue? Put Lazarus and project folders on the white-list of the virus scanner.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

deblaz

  • Newbie
  • Posts: 4
Re: Windows 10 suspend!
« Reply #3 on: August 21, 2019, 02:25:47 pm »
No antivirus issue...  I use uniqueinstance and trayicon...

af0815

  • Sr. Member
  • ****
  • Posts: 343
Re: Windows 10 suspend!
« Reply #4 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
regards
Andreas

deblaz

  • Newbie
  • Posts: 4
Re: Windows 10 suspend!
« Reply #5 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.

af0815

  • Sr. Member
  • ****
  • Posts: 343
Re: Windows 10 suspend!
« Reply #6 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.   
regards
Andreas

deblaz

  • Newbie
  • Posts: 4
Re: Windows 10 suspend!
« Reply #7 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!