Hello, what is the best way to write a pointer to file? Their is no user type, its just pointer. What i'm doing is, I have an array of these pointers, it is correctly freed before allocation, then allocated by the number of elements I read from my file. However when it reads the data into this array, the pointer on the element is bogus, and thus I believe what is causing some really wierd and strange happenings (infinite loop on a line that doesnt have a loop statement, priviledged expections, access violations, etc lol). I'm using the following statement to write the data.
BlockWrite(f, peObjs[i], sizeof(peObjs[i])); and the same for read using BlockRead. I dont see what the problem is. Do i need to do something funky like convert the pointer to an array of char or something like that? __________________________________________________ Delphi-Talk mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi-talk
