Roberto Nicchi Posted June 3, 2021 Posted June 3, 2021 Hi, I have an unimdbgrid (mobile version) with dataset and 10 rows for page. I load into a column the path ed the relative image. I use grid.fieldimage to load the image: Quote procedure form.<unimdbgrid>FieldImage(const Column: TunimDBGridColumn; const AField: TField; var OutImage: TGraphic; var DoNotDispose: Boolean; var ATransparent: TUniTransparentOption); var outimageBMP:TBitmap; begin if Column.FieldName='path_immagine' then begin if ( (afield.AsString<>'')) then //(the complete path) begin outimageBMP := TBitmap.Create; try OutImage := TBitmap.Create; imgfiletobmp(afield.Value,outimageBMP,false,'AUTO',60,60); OutImage.Assign(outimageBMP); finally outimageBMP.Free; end; end end; end; This is the problem: I have a dataset with more than 2600 records, if I set imgfiletobmp(afield.Value,outimageBMP,false,'AUTO',60,60), after some seconds I recive the message "connection error comunication failure: ", but if I set, for example, imgfiletobmp(afield.Value,outimageBMP,false,'AUTO',40,40), it works correctly. Someone can explain me why? Thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.