[Solved] Access violation reading data from binary file into struct in C


Since pointers are assigned in run-time and addresses are handed out in run-time, it makes no sense whatsoever to store/load a binary image containing pointers inside a file, because addresses will vary each time your program is executed.

Therefore you cannot load this struct. You’ll have to re-write your whole program from scratch as it makes no sense.

solved Access violation reading data from binary file into struct in C