Out of Memory exception while uploading and resizing multiple images asynchronously

前端 未结 2 369
孤街浪徒
孤街浪徒 2021-01-20 18:18

Hi I am trying to upload some images async, I get Out of Memory Exception, I am disposing by using statement however I get following stack trace

<         


        
相关标签:
2条回答
  • 2021-01-20 19:04

    Dispose sourceImage and destImage after job is done.

    0 讨论(0)
  • 2021-01-20 19:18

    I believe you are indeed trying to paint outside the destination rectangle... if you notice your code you are in fact (in the line marked) painting image.Width and image.Height (original dimensions), and not the ratio-applied dimensions...

    0 讨论(0)
提交回复
热议问题