[quote="M109uk"]I use PChar to store the data in the loading procedure
But im not sure if i am using it properly.. When the texture is loaded at the end when i set the TcxtHeader information i just use
[pascal]
Header.Data := Data;
[/pascal]
Them both being PChar's.

Nope, is not correct, Pchar assigment is used as null terminated string, mean that it will copy the "string" pointed until any byte zero is found.

use Move command for copy the whole block data from one pointer to another, you have to tell your data size.


tp.