I am writing some code to retrieve data from SQL Server, including an image field.
I load the retrieved image data into a byte array and then convert the array into an image.
Finally, I want to show a thumbnail of the image in a picturebox control on my app's form.
All this works perfectly on my dev machine running windows 7, but the following code:

Dim myblankCallback As Image.GetThumbnailImageAbort = New Image.GetThumbnailImageAbort(AddressOf blankCallback)
                PictureBox1.Image = newImage.GetThumbnailImage(180, 180, myblankCallback, New System.IntPtr())

produces an out of memory exception on Windows XP machines if the size of image is > 4 kb

Any help to rectify the situation will bw highly appreciated.

Edited by oeatek: n/a

8 Years
Discussion Span
Last Post by oeatek
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.