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.