Hi!
I am having a little trouble (as always ) with loading a picture from a file to a tpicture variable..
Here's what I have problem's with:
Code:
type
tpack=record
 kep:tpicture;
 nr:integer;
 hsize:int64;
 fsize:int64;
end;
var 
lpack:array [1..9999] of tpack;
...
 lpack[1].nr:=1;
lpack[1].kep.LoadFromFile('D:\integralas1.jpg');
//It won't let me load the picture.. it gives an error saying "raised exception Class
//EAccessViolation with message 'Access violation at adress 00404107 in module .. read 
//of adress 00000000'" I think it's because I have to "initialize" the tpicture 
//component somehow but I don't know how ..
 lpack[1].hsize:=sizeof (lpack[1]);
 lpack[1].fsize:=sizeof (lpack[1]);
...
Can you please help ?