Recent

Author Topic: Error: Cannot focus a disabled or invisible window.  (Read 1985 times)

jamie

  • Hero Member
  • *****
  • Posts: 6888
Re: Error: Cannot focus a disabled or invisible window.
« Reply #15 on: April 29, 2023, 06:15:17 pm »
There is a lot of strange but true coding going on around here! :D

Is there is possibility of multi-threading taking place?
The only true wisdom is knowing you know nothing

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Error: Cannot focus a disabled or invisible window.
« Reply #16 on: April 29, 2023, 06:57:51 pm »
Code: Pascal  [Select][+][-]
  1. frmEditMC := nil; // optional
I don't know how many times I must say this. "FreeAndNil" does exactly what you are doing in with one call, not two separate calls.
There is no need to nil at all, thats why I wrote "optional", or do you see any "if Assigned()" checks in his code?
As long we see nothing else beside his calls to show a formular, this all is just mumbo jumbo and wild guessing.
« Last Edit: April 29, 2023, 07:01:51 pm by KodeZwerg »
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

 

TinyPortal © 2005-2018