My application loads an image from disk into a picturebox control on the form. The image is standard webcam size of 320x240 pixels and file size is about 5-15KB. The user clicks a button to load the image from the C drive where this application is and receives a Out of Memory error and no image loads.
It does however work on my PC where the application was developed. I've tried on another PC a laptop with 1.6gig cpu and 512 mb ram and it wont work on there either. My PC is 2.0gig cpu with 1gb ram. When running the app says it is using about 26mb ram in the processes list.
My code to load the image is:
file.Name contains the filename eg, "Picture 2.jpg"
Any ideas why I am getting this out of memory error?
It does however work on my PC where the application was developed. I've tried on another PC a laptop with 1.6gig cpu and 512 mb ram and it wont work on there either. My PC is 2.0gig cpu with 1gb ram. When running the app says it is using about 26mb ram in the processes list.
My code to load the image is:
VB.NET:
pbxPhoto.Image = Image.FromFile("C:\BusPassPhotos\" & file.Name)
file.Name contains the filename eg, "Picture 2.jpg"
Any ideas why I am getting this out of memory error?