Recent

Author Topic: Running programm freeze when focus changes  (Read 1744 times)

schabersack

  • Newbie
  • Posts: 1
Running programm freeze when focus changes
« on: September 08, 2018, 11:11:38 am »
Hello!

I am running a little prog that scans files and checks for filelenght. During aktivity there is no way to change the windows focus. If you do so the application freeze. Is there any way the programm can run in the background?

Thanks...

Schabersack


lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Running programm freeze when focus changes
« Reply #1 on: September 08, 2018, 02:20:50 pm »
Please, share some code. It's impossible to see what may be happening without that. :)
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9864
  • Debugger - SynEdit - and more
    • wiki
Re: Running programm freeze when focus changes
« Reply #2 on: September 08, 2018, 02:31:56 pm »
threads or Application.ProcessMessages

(search for the latter, here on the forum)

 

TinyPortal © 2005-2018