Closed GoogleCodeExporter closed 9 years ago
I presume you call MeasureString (and thus TextLayout) in a loop somewhere?
If so, the memory leak is caused by the fact that you never Dispose() of the
Factory or TextLayout objects you allocate. SlimDX objects do not finalize
themselves, so you're leaking all the native resources that underpin the SlimDX
objects. This behavior is documented in the Object Lifetimes section of the
Programming Guide in the SDK Documentation.
Original comment by josh.petrie
on 2 Jul 2010 at 2:56
That's great, thanks for your help!
Original comment by cirel...@gmail.com
on 2 Jul 2010 at 3:10
Original issue reported on code.google.com by
cirel...@gmail.com
on 2 Jul 2010 at 11:34