nokturnal#32408
Hey, without getting into massive details of this app (since it is huge) I am getting a memory leak some place... Let me try to explain:
- I have a List<Order> that I am iterating over in a simple foreach. (this list has currently 8 thousand of "Orders")
- - as the List<Order> has increased in size, this memory issues has become more of a problem
- in that foreach loop I call a static method in a Drawing class called GenerateImage()
- in that method it generates a bunch of unique images and stores them in a Dictionary<string, Aurigma.GraphicsMill.Bitmap>
- once all of the unique assets have been created inside that Dictionary, I then place them onto a newly created destination Aurigma.GraphicsMill.Bitmap at predefined positions
- the dictionary is used to not have to create the same image multiple times as I place them onto the destination Aurigma.GraphicsMill.Bitmap
- the destination Aurigma.GraphicsMill.Bitmap is then returned
I am forcing garbage collection to occur to highlight the memleak in this process in the below:

I have a sneaking suspicion it has to do with the Dictionary<string, Aurigma.GraphicsMill.Bitmap>... but I am not sure how to proceed...
Please advise... Like I said, the app is massive with a lot of image dependencies so it is super difficult to share code snippets in a meaningful way... I will try to explain as much as I can if needed...
- I have a List<Order> that I am iterating over in a simple foreach. (this list has currently 8 thousand of "Orders")
- - as the List<Order> has increased in size, this memory issues has become more of a problem
- in that foreach loop I call a static method in a Drawing class called GenerateImage()
- in that method it generates a bunch of unique images and stores them in a Dictionary<string, Aurigma.GraphicsMill.Bitmap>
- once all of the unique assets have been created inside that Dictionary, I then place them onto a newly created destination Aurigma.GraphicsMill.Bitmap at predefined positions
- the dictionary is used to not have to create the same image multiple times as I place them onto the destination Aurigma.GraphicsMill.Bitmap
- the destination Aurigma.GraphicsMill.Bitmap is then returned
I am forcing garbage collection to occur to highlight the memleak in this process in the below:

I have a sneaking suspicion it has to do with the Dictionary<string, Aurigma.GraphicsMill.Bitmap>... but I am not sure how to proceed...
Please advise... Like I said, the app is massive with a lot of image dependencies so it is super difficult to share code snippets in a meaningful way... I will try to explain as much as I can if needed...