Recent

Author Topic: Windows 10 suspend!  (Read 2555 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

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
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: 11854
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.

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

  • Hero Member
  • *****
  • Posts: 1288
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

  • Hero Member
  • *****
  • Posts: 1288
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!

neerajsati

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