> > I created the imagelist using the IDE (imagelist editor).  But in doing
> > so the IDE reported an error when saving from the imagelist editor.  I
> > don't recall what the error said but it offered to continue or cancel. I
> > decided to continue.  I then saved the project and closed.  When I
> > re-opened the project and my imagelist along with my graphics was there. 
> >   That's all I did.
> >
> > But I have also discovered that a Tbitbtn with a graphic is leaving a
> > unreleased GDIObject when closing.  So the issue is not limited to the
> > imagelist.  My graphics are in a sub-directory just below the project. 
> > Was this wrong?  Is there a different way I should have added graphics?
>
> I don't know how you close your forms, but normally the graphics are
> automatically freed in this case.
> I've tried it here, but I cannot reproduce.
>
> Marc
Ok so in your mind just adding the graphic would not normally cause the issue 
of unreleased GDIObject.  And there is nothing special in the way to add 
graphics to a project.

I open the form1 dynamicly as follows:
var customerform:Tcustform;
begin
 customerform:=tcustform.create(nil);
 customerform.show;
end;

I have solved the issue for now.  I just destroy the objects in my formclose.  
But I keep thinking it has something to do with the way I added the graphics. 
BTW I'm using the IDE to add the graphics.

thanks for your thoughts.

John

 

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to