Object reference not set to an instance of an object

G

Guest

Hi all

I'm getting this error on this line after inicializing the RTCClient:

oProvisioning2.GetProfile(sipUsername, sipPassword, userURI, sipServer,
RTCTR_UDP, 0);


i have declared oProvisioning2 in:

private RTCCORELib.IRTCClientProvisioning2 oProvisioning2;


this is an SIP application..
could anyone help me...

thx!
 
G

Guest

From the looks of it, you declared a reference to an object, but not an
actual object. Is RTCCORELib.IRTCClientProvisioning2an interface or a class?

If it is a class all you need to do is create an instance of it and have
your variable oProvisioning2 point to it, with any luck it should be as
simple as:

oProvisioning2 = new RTCCORELib.IRTCClientProvisioning2();

This will need to be done before any calls to methods or properties of
oProvisioning2.

If this fails, make sure that you have specified the correct arguments for
its constructor.

If IRTCClientProvisioning2 is in fact an interface, you will need to
instantiate a class that implements the IRTCClientProvisioning2 interface
with logic very similar to what I gave above.

Brendan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top