Amiga.org
Amiga computer related discussion => Amiga/MorphOS/AROS Programmers Forum => Topic started by: tomas.tuharsky on August 06, 2025, 02:49:44 PM
-
After creating struct Screen * by calling OpenScreen(struct NewScreen *) I am unable to free up the resources.
I call CloseScreen(struct Screen *) at the end of the program, it doesn't seem to help.
I can access the screen to draw rectangle, for example and it actually shows.
Program will run but StormC 4 says "Screen 0x40d7b948 not closed.
It's the screen I've created by OpenScreen.
(https://previews.dropbox.com/p/thumb/ACsvUWptKfzJtOmxYVUp-G_zOJCGtYMOXoQGFD7XvHaXQNc1PxFG0i6XAoQTpo9XqLF-Brn9PHyEviyIDYUpBomhce6n6rrj8ja9F-9A2TDRlxGw4un2nslwVqwvx7ynkyw01FTDbNuJwPpf6ExVPppsPIC8ipQMBxLUwUaUj6gBGiwiyTSHujJ-TLsQhHQsxmFV9gsJLoN8w2zPDO7PVUJZNowUd0dWzN9V_MypDHkhc8G1nW_oOpqLrYPXREGJviCieaP5_vlxBJNBImsRmd_Y0kEm6ilKy0XzTA1RfGXhWWHcuDPNc1FYtavvOlfj4M0UHpKpvUnXBpsW7AD3yfTc/p.png?is_prewarmed=true)
-
If the screen disappears, then the call to CloseScreen was correct and StormC is mistaken.