Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-09

TDBImage - With IBConection and FBDataset - AV

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Joost van der Sluis
to Osvaldo Filho

Op maandag 01-09-2008 om 12:05 uur [tijdzone -0300], schreef Osvaldo Filho:

I can not use tdbimage, access violation! loadpicture error?

Hmm... I had that working with a few hacks. Maybe that it doesn't work anymore with the latest image changes in Lazarus-svn. So which fpc and lazarus version are you using?

Joost

Reply by email

Osvaldo TCF - Listas
to Joost van der Sluis
Hi, the error is in loadpicture ???
gc := s.readansistring ???

My environment:
Ubuntu 8.04.1
FPC 2.2.3 - svn copy
Lazarus 0.9.25 r16351 - svn copy

Joost van der Sluis wrote 17 lines
Op maandag 01-09-2008 om 12:05 uur [tijdzone -0300], schreef Osvaldo Filho: > I can not use tdbimage, access violation! > > loadpicture error? Hmm... I had that working with a few hacks. Maybe that it doesn't work anymore with the latest image changes in Lazarus-svn. So which fpc and lazarus version are you using? Joost _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Osvaldo TCF - Listas
to Joost van der Sluis: Op maandag 01-09-2008 om 12:05 uur [tijdzone -0300], schreef Osvaldo Filho: Hmm... I had…

With my image: a .jpg file
---------------------------
in dbimage.inc, line 163:

        try
          GraphExt := s.ReadAnsiString;
          gc := GetGraphicClassForFileExtension(GraphExt);
          if assigned(gc) then
            begin
            AGraphic := gc.Create;
            AGraphic.LoadFromStream(s);
            Picture.Assign(AGraphic);
            end;
-------------------------------------------

gc is not assigned, is it correct?
==========================================================

The AV ocour here:
dbimage.inc line 175
----------------------
            Picture.Assign(AGraphic);
            end;
        finally
line 175>>  if assigned(AGraphic) then AGraphic.Free;
          s.Free;
        end {try}
----------------------
Joost van der Sluis wrote 17 lines
Op maandag 01-09-2008 om 12:05 uur [tijdzone -0300], schreef Osvaldo Filho: > I can not use tdbimage, access violation! > > loadpicture error? Hmm... I had that working with a few hacks. Maybe that it doesn't work anymore with the latest image changes in Lazarus-svn. So which fpc and lazarus version are you using? Joost _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email