Hello All,
I am new to programming in VB. I am trying to use the Adobe3D reviewer built in class in my code. I need to use a method of the class so I am trying to create an object. However, when I try to use the object to access the method I get this error:
System.NullReferenceException was unhandled.Object reference not set to an instance of an object.
I am not sure where I am going wrong. Any suggestions/comments will be greatly appreciated.Here is my code snippet.
I am new to programming in VB. I am trying to use the Adobe3D reviewer built in class in my code. I need to use a method of the class so I am trying to create an object. However, when I try to use the object to access the method I get this error:
System.NullReferenceException was unhandled.Object reference not set to an instance of an object.
I am not sure where I am going wrong. Any suggestions/comments will be greatly appreciated.Here is my code snippet.
VB.NET:
Module Module1
Sub Main()
Dim attVal As New Object
Dim geomItemObject As Adobe3DReviewer.GeomItem
geomItemObject = Nothing
attVal = "value"
//The error is thrown at this line.
geomItemObject.AddAttribute("hi", attVal)