Dot Net Library

Status
Not open for further replies.

SWSDEV

Forum User
Joined
Feb 23, 2008
Messages
256
Reaction score
0
When you call to a .Net assembly, does the object you're instantiating have to have a constructor with no parameters?
 
Yes, currently we need to create a new instance of the object (using a parameter less constructor), invoke the method on it, and let it be garbage collected.
If you need to reuse an object or create it using parameters, you may for example create a singleton which has a reference to it, and use the singleton as a proxy.
I'm pretty sure that in future versions of the VAD this feature will be added...
 
Status
Not open for further replies.