C
ChaosX2
Guest
Hi Everyone,
I'm working with ds maps and list for saving objects and while I was messing around, I believe at one point I caused a memory leak before getting the code back to normal to try another approach. With that said, the normal working code will not produce the JSON list, but if I start a new project and copy/paste my code exactly, it works.
The only other thing I can think of is that when I caused the leak a while back, GameMaker is retaining the memory of the old variables and it isn't creating the map and list properly because indexed data structures could potentially use the same index number. I tried using ds_map_clear and ds_list_clear but it didn't work.
So I'm wondering if anyone knows of a way to simply flush the project of allocated memory, so it starts fresh upon playing your game.
Thanks in advance!
I'm working with ds maps and list for saving objects and while I was messing around, I believe at one point I caused a memory leak before getting the code back to normal to try another approach. With that said, the normal working code will not produce the JSON list, but if I start a new project and copy/paste my code exactly, it works.
The only other thing I can think of is that when I caused the leak a while back, GameMaker is retaining the memory of the old variables and it isn't creating the map and list properly because indexed data structures could potentially use the same index number. I tried using ds_map_clear and ds_list_clear but it didn't work.
So I'm wondering if anyone knows of a way to simply flush the project of allocated memory, so it starts fresh upon playing your game.
Thanks in advance!