Yue Posted September 23, 2021 Posted September 23, 2021 I am struggling to implement a correct screen resolution change without bugs. I am on the right track, learning as always something new in this process. But something here is not going right for me, I create a Gui and try to delete it and it crashes the application, any suggestions? myGUI = GUI:Create(Context:GetCurrent()) myGUI:Release() Quote Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
reepblue Posted September 23, 2021 Posted September 23, 2021 I noticed this with my code. Any deletion of the gui crashes the app. This is why I just let the operating system clean up the pointers when the app terminates. 1 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon!
Yue Posted September 23, 2021 Author Posted September 23, 2021 I have the mania of wanting to eliminate everything manually, and it is that in the change of resolution the context that also uses the GUI is eliminated. I suppose that nothing happens if I restart it again and it overwrites its new values in the memory. The thing is that I am following the path of many in learning Leadwerks. Quote Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.