Recent

Author Topic: Application repeat restarting in Windows Server 2018  (Read 936 times)

egsuh

  • Hero Member
  • *****
  • Posts: 1825
Application repeat restarting in Windows Server 2018
« on: April 07, 2024, 12:14:13 pm »
I have a Windows application --- with a form that have many frames, which runs fine on Windows 10 or 11. But on Windows Server 2018 (? guess so), the application restarts sometimes when run within Lazarus IDE --- not as standalone .exe file.

Its build mode is debugging mode, and I'm heaptracking.

This happens when there are small minor errors --- like

  - When there are assignments to event handlers for TBufDataSet (like BeforePost, etc.)
  - Wrong inherited attributes remain in .lfm file (when I have changed them in .lfm file of frames, but old definitions remain in the form's lfm file)

  - Or when I click main menu, which changes tabsheets shown

Restartings diminish if I clear those things --- like deleting and putting again a frame on a form. But still happen infrequently.

You'll understand that this is very difficult to regularly replicate, but I'll post further when I find something.

jamie

  • Hero Member
  • *****
  • Posts: 7891
Re: Application repeat restarting in Windows Server 2018
« Reply #1 on: April 07, 2024, 04:01:00 pm »
I am sure you need to give the server some permissions to run the app under the Debugger.
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018