Platform Masters development (May 6, 2009) - the on-going malloc problem
https://www.patreon.com/ulillillia --- Uploaded on May 6, 2009
This malloc problem is driving me nuts. I thought I'd make this video to get assistance with it. This would make future changes not as demanding, if I were to finally merge into this system. Without using malloc, it's wasted memory, and lots of it. In addition, it's also difficult to manage 2 or 3 separate editions, if I am to target older systems. Change it in one edition, and I have to change it in the other, which has the chance of not being done, due to forgetting about it. I've tried pretty much everything I can think of for the setup. While my "load image file" function is much more complicated, it works perfectly fine if I use direct allocation (from an array). So, I basically stripped down the main task down to its skeleton, the heart of everything, and yet, it still happens. Very strangely, I can get this to work without problems in a struct, but I want this to work outside of a struct. Why it doesn't work for something outside a struct and does for something in a struct (in basically the same design), that I don't know. I thought that fixing the text-draw function was bad enough, this is even worse, but it's supposedly a far simpler task. I don't get it.... I'm just about to build the level editor and test character movement and would like this resolved before I start. I can still make progress in other areas beyond programming, however, such as graphics.