Procedure.i DestroyTrackWindow(Window.i)
; Remove Window from the ActiveWindows map, release the allocated memory,
; close the window and set the quit flag, if appropriate.
Shared EventQuit, ActiveWindows()
Protected *ThisData.DATEWINDOW <---
...
mk-soft wrote: Fri Feb 13, 2026 9:45 am
You're wrong with your question here.
Source of the code not specified and (after searching for it) the code not copied correctly and completely with structures.
No Bug
Yes, this is a question about the code in the documentation: https://www.purebasic.com/documentation ... _any2.html
I understand that TRACKWINDOW and DATEWINDOW are the same size and this will not cause an error, however I believe it is logically incorrect when creating a TRACKWINDOW in CreateTrackWindow() to free the DATEWINDOW in DestroyTrackWindow(Window.i). This creates confusion, which is why I didn't realize it at first when translating and analyzing it. The question is closed.