zhaojiahai / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Crop class memory leak #186

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call AForge.Imaging.Filters.Crop.Apply method more than 126000 times

What is the expected output? What do you see instead?
"An unhandled exception of type 'System.StackOverflowException' occurred in 
AForge.Imaging.dll"

What version of the product are you using?
AForge.Imaging.dll 2.1.5

Please provide any additional information below.

My prog screenshots window and parse result. There a few zones which I need to 
crop. In 1 second window captures about 5 times (about 90*5 croping using 
Crop.Apply() in second). In task manager my assembly memory usage on 70-90 mb 
level. But on 1377 screenshot (126k croping) program throwing exception "An 
unhandled exception of type 'System.StackOverflowException' occurred in 
AForge.Imaging.dll" on any machine (32 bit, 64 bit, WinXP, Win7). Does it 
memory leak in Crop class? Perfomance wizard also show all ok with memory and 
CPU usage.

Many thanks

Original issue reported on code.google.com by duce...@gmail.com on 17 Feb 2011 at 7:50

GoogleCodeExporter commented 8 years ago
I'm sorry it is my recursion fail. Remove topic please.

Original comment by duce...@gmail.com on 17 Feb 2011 at 10:44

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 17 Feb 2011 at 10:52