Quote Originally Posted by virtual
the problem is in : gpPicture.get_Handle(LongWord(hBmp)); the program crash here
try
gpPicture.get_Handle(LongWord(@hBmp));