ok I''m implementing a file archive system like pak... I''m using class... basicly as long as the data in an entiery dosen''t get large then about 512k theres no problem(or maby there is and I''m not caching it)... basicly the data is being held as an unsigned char* hears some code....
bool CEntiery::Read(ifstream&){
...//read in header for entiery
m_data=new unsigned char[m_size];
...//read in data
}
void CEntiery::Release(void){
...//release other members
if(m_data){
delete[]m_data;
m_data=NULL;
}
the destructor for the class just calls Release()
I''m not seeing anything wrong with the code, but after running the program several times the computer starts to run out of memory...
Great Milenko
Words Of Wisdom:
"Never Stick A Pretzel In Your Butt It Might Break Off In There."
http://www.crosswinds.net/~milenko
http://www.crosswinds.net/~pirotech
The Great Milenko"Don't stick a pretzel up your ass, it might get stuck in there.""Computer Programming is findding the right wrench to hammer in the correct screw."