Expected Lifetime of IRendering

Discussions related to custom development with Select.
Post Reply
kwesterlage
Posts: 73
Joined: Thu May 21, 2015 2:28 pm

Expected Lifetime of IRendering

Post by kwesterlage »

Hello,

We are rendering several documents using the IRendererFactory serveral places in our code (some are use to create order attachments, others are sent through the print-pipeline, etc.) What is best practice when disposing of the IRendering objects so it does not cause side-effects within Select?
kwesterlage
Posts: 73
Joined: Thu May 21, 2015 2:28 pm

Re: Expected Lifetime of IRendering

Post by kwesterlage »

The side-effects we're seeing are memory leaks. We already call dispose on the IRendering when we're finished with it, but we still regularly run out of memory. Any thoughts?
Phil Barton
Posts: 54
Joined: Wed Sep 24, 2008 2:37 pm
Location: Raleigh, NC
Contact:

Re: Expected Lifetime of IRendering

Post by Phil Barton »

What are the types of objects that you see being leaked? Also, along with disposing of the IRendering instance, ensure you dispose of the IRenderer instance that you receive from the IRendererFactory.Create() method.
Phil Barton
Software Architect
SoftPro
Post Reply