Hello all,
The following code gives me an out of memory error IDE error. The error is on the last line when I assign the imagebutton1.image to bin.retrieveimage. There are several images embedded in data.dat. If I change imagebutton1.image to image1.image all is fine. Using version 6.05.
The error is the following:
Any ideas?
Thanks
The following code gives me an out of memory error IDE error. The error is on the last line when I assign the imagebutton1.image to bin.retrieveimage. There are several images embedded in data.dat. If I change imagebutton1.image to image1.image all is fine. Using version 6.05.
B4X:
FileOpen(c1,"data.dat",cRandom)
bin.New1(c1,true)
image1.Image=bin.RetrieveImage
imagebutton1.Image=bin.RetrieveImage
FileClose(c1)
The error is the following:
Consultez la fin de ce message pour plus de détails sur l'appel du débogage
juste-à-temps (JIT) à la place de cette boîte de dialogue.
************** Texte de l'exception **************
System.OutOfMemoryException: Mémoire insuffisante.
à System.Drawing.Graphics.CheckErrorStatus(Int32 status)
à System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, DrawImageAbort callback, IntPtr callbackData)
à System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr, DrawImageAbort callback)
à System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr)
à Dbasic.EnhancedControls.CEnhancedImageButton.OnPaint(PaintEventArgs e)
à System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
à System.Windows.Forms.Control.WmPaint(Message& m)
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Any ideas?
Thanks