   Memory allocation issues
  I was using MSVC++ and had no errors that I knew of but maybe they were there? I am now using gcc3.3 and when I allocate memory using new for an array like so   unsigned char *uc = new unsigned char[imageSize];that allocation is in my file loader with in my class and the pointer uc is private in the class. Now I have another function with in the class that uses the pointer to grab the file data and send those values to a struct that is a multi-dimension array. I get a memory access violation? each time on the assignment? If I allocate memory in the construct with a predetermined value and don''t allocate the memory in my file loader function I get no memory access violation errors? I haven''t had this before. Now on gcc3.3 I have issues. Is the way gcc is making me do it the correct way?Thanks 
  Please post ALL your code. It''s really hard to tell what the problem is from the information you are giving. 