im sorry 7stud i should of stated that it was pseudo code,
thanks for all you help,
p3p
Type: Posts; User: p3p
im sorry 7stud i should of stated that it was pseudo code,
thanks for all you help,
p3p
hi, i am wondering how to do this or a similar implementation
eg.
class shape{}
class square : public shape{}
class triangle : public shape{}
std::vector<shape> vector;
thanks for the explanation daved, now to go see if i can fix it :), my font class releases the font when the Form class is deconstructed, so bad things happen
p3p
hi, im writing a gui for my 2d engine(sdl powered) and hit snag, it apears that each time i add a form class to the vector the deconstructer of every item in the vector is called,
why is this?...
well i wrote a inifile handling class and still had the same error until i added
bool PINIFile::active()
{
int i=0;
if(inifile.is_open() && inifile.good()){ return true; }
...
ok traced it to the file not staying open sumtimes, made the program check and try reopening it 10 times with a 500ms delay between atemps n it still fails, will get back 2 it later need sleep
thank you,
i will convert to ifstream, the function is more then 200 lines long and is dependant on a fair amount of other custom functions and classes so posting compilable code wouldnt be...
the following is a part of my sprite loading function,
using vc++ .net 7
running in the debuger and running the debug exe it runs perfectly, running the release exe from the debuger runs...