Recent

Author Topic: Unresponsive program  (Read 4745 times)

BrunoK

  • Sr. Member
  • ****
  • Posts: 452
  • Retired programmer
Re: Unresponsive program
« Reply #15 on: June 22, 2018, 10:21:34 am »
I don't think that a variable named continue in a while loop, like in
Code: Pascal  [Select][+][-]
  1.  while continue = false do
  2.           begin
  3.             Application.Processmessages;
  4.           end;
is a good idea, even if it works.

continue according to https://www.freepascal.org/docs-html/rtl/system/continue.html jumps to the end of the loop and re-evaluate the while condition.

Maybe it can be used but, well, I would use another name to avoid possible confusion.

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: Unresponsive program
« Reply #16 on: June 22, 2018, 05:45:35 pm »
    I have a program made with Lazarus and it generally runs fine but occasionally will become unresponsive, stop interacting with Windows10 and then the computer crashes. The event logs indicate that this program caused the errors.
    This never happens when the same program is run on WindowsXP.

A few questions for you:

- Have you tested it on just one Windows 10 system? Or multiple Windows 10 systems?
- For that matter, have you tested it on multiple systems running XP and Win7?

Windows 10 imposes a few more security tests and checks, so it could be (assuming failure on multiple systems) that there is something about your application that is using memory in a way that is flagged by Windows 10 vs older versions of Windows.     Plus, there could be other differences like anti-malware and processor differences that come into play.

BTW, what does the app do that you feel you need to get rid of UAC?
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

 

TinyPortal © 2005-2018