Amol Jawalkar

Amol Jawalkar

  • NA
  • 1
  • 1.5k

Hi , I am facing problem in using SWIGTYPE_p_p_Object in C#

Jul 6 2012 7:13 AM
Hi ,          

  I am facing problem in using SWIGTYPE_p_p_Object in c#.
           
  In my c++ project i have classes like          

  class Object
     {      
       ..............................
     };  

        class Import  
  {  
  public:
    Load(Object** value);  
  }
          and in one of the my API in Import class it uses Object class pointer as     input like Load function.      

   when i generate its wrapper in c# ,it generate another class   SWIG_p_p_Object     and my Import class in c# is something like    

        Public class Import: IDisposable    
 {
        protected bool swigCMemOwn;  
      public Import(IntPtr cPtr,
        bool cMemoryOwn);
        public int Load(SWIGTYPE_p_p_Object value);
       }


  and Object class
   Public Class Object :IDisposable
{
         .............. 
         }                
I am not able to understand how to use function Load of Import class and     what value to set for SWIGTYPE_p_p_Object class variable.        

 Can anyone help me out?    

 Thanks and Regards,
  Amol.