Skip to main content

In the context of a SmartForms custom control I have been using the static methods of the SourceCode.Forms.Controls.Web.SDK.Utilities.ConnectionClass class to get SmartObject connections and FormClient objects, etc.

 

These methods use the naming convension "GetXYZ", such as GetFormsClient, GetSmartObjectClient, etc.

 

This is unclear who should then manage the instance (and thus Dispose) of these connection objects.

 

I don't want to leave memory open, but also don't want to create overhead by forcing the K2 runtime to re-create something that I have disposed too soon.

 

Does anyone know for certain if we are suppost to Dispose these objects that we get from the GetXYZ methods?

Be the first to reply!

Reply