Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #3  
Antiguo 03-06-2019
javicho_villa javicho_villa is offline
Miembro
 
Registrado: feb 2005
Ubicación: Lima - Perú
Posts: 101
Poder: 20
javicho_villa Va por buen camino
Smile Mejoró

Muchas gracias por la pronta respuesta. libere esos objetos y mejoró

Código Delphi [-]
procedure TPresupuestoDatoForm.ListaDrawColumnCell(Sender: TObject;
  const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState);
var wic: TWICImage;
    Stream:TMemoryStream;
    DrawState: Integer;
    DrawRect: TRect;
begin
  if Dm.DetalleADOQuery.RecordCount>0 then
    if ( Column.FieldName = 'Imagen' ) then
      begin
        Stream := TMemoryStream.Create;
        TGraphicField(Dm.DetalleADOQuery.FieldByName('Imagen')).SaveToStream(Stream);
        Stream.Position := 0;
        wic := TWICImage.Create;
        wic.LoadFromStream(Stream);
        with TPicture.Create do
        try
          //Assign( Column.Field );
          Assign(wic);
          //Lista.Canvas.StretchDraw( Rect, BitMap );
          Lista.Canvas.StretchDraw(Rect, wic);
        finally
          wic.free;
          Stream.free;
          Free;
          ////DrawRect.free;
        end;
      end;
end;

aun sale el out of memory, te paso la imagen del nuevo mensaje.

https://www.clubdelphi.com/foros/att...1&d=1559596362

Muchas gracias por el apoyo.
Imágenes Adjuntas
Tipo de Archivo: png Error911.png (14,9 KB, 16 visitas)
__________________
Javier Villa Sánchez
jvilla@andreaproducciones.com
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Out Of Memory Cesargt Varios 10 21-10-2015 20:53:51
Out of memory Firewind Lazarus, FreePascal, Kylix, etc. 3 20-07-2010 12:33:32
Out of memory blaiselaborde Varios 10 26-01-2010 18:52:27
Out of Memory luxus OOP 5 30-09-2008 23:11:54
error.. out of memory... CarlosHernandez Firebird e Interbase 12 07-03-2007 14:03:22


La franja horaria es GMT +2. Ahora son las 08:47:52.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi