samedi 11 avril 2015

OutOfMemoryException when Inserting larger images in SQLCe

Inserting smaller images work fine. However, when the image file gets bigger than about 2MB, I get an OutOfMemoryException. I tried with SqlCeUpdatableRecord and a parameterized SqlCeCommand. Using the SqlCeCommand, the exception is raised at ExecuteNonQuery(). With SqlCeUpdatableRecord, the exception is raised at SqlCeUpdatableRecord.SetBytes(). I’ve tried increasing Buffer size and temp file size without it seeming to have an effect. I’ve debugged with “GetTotalMemory” and there seems to be plenty of resources available. Any tips would be highly appreciated.


Aucun commentaire:

Enregistrer un commentaire