1: it's not failing, I have been able to get at most of the data within the POF file
2: I'm fairly sure this is were the problem is, for some reason it seems to be returning NULL (and thus is failing), I defanantly am not running out of ram, and if I have the buffer set staticly (char *buffer[some big number I can't remember off the top of my head]) it works
3: it get's deleted further down from this section
4: it does get closed
I don't think fread was letting me use *char
as you may see I was just copying the raw byte data and useing some 'fun' pointer math to load the data into some variables, it's been working so far, right down to the OBJ2 BSP data (it get's a little harry in the realy tight parts with the tmapped polys), so I think it's working
anyway, is there a good explaination on how to use new and things that it doesn't like,
I've also been getting some odd errors with some other arrays were they won't let me set them staticly, thus I have to use new