TBitmap problem lazarus / 39-Graphics ---------------------------------------------------------------------- georgebou · 2014-05-20 22:29 Hello all. Can anyone explain me why this code work fine in a program but raises an exception in a dll? Code: [Select]procedure testbitmap; Var    test:TBitmap; Begin         test: =TBitmap.create;         test.width:=10;    //here an exception is raised when the code is executed in the dll but not when it is executed in main program. end; ---------------------------------------------------------------------- ChrisF · 2014-05-20 23:56 Add Interfaces in your 'Uses' clause. ---------------------------------------------------------------------- georgebou · 2014-05-21 00:39 Thanks mate. If you lived in Greece i would treat you a beer. It was driving me crazy