Re: Segmentation Fault on CosNaming_NamingContext_bind()



Here is my code from factory-server.c


--code sniff--

 CosNaming_NamingContext name_srv; 
  

--code sniff--

  name_srv =
    CORBA_ORB_resolve_initial_references(orb, "NameService", &ev);
  if(name_srv==NULL){
  g_message("name_srv is always null");
  g_message("%d",ev._major);
  exit(0);
  }

--code sniff--

CosNaming_NamingContext_bind(name_srv,fac_name, fac, &ev);

--code sniff--


The fact is segmentation fault because name_srv is always NULL,
somebody tell me how to fix this problem ..
I still don't understand why ..:)




--
joe
Zulkarnaen Hatala                       L I V E
email : joe pinguind co id              F R E E
PinguinD Linux ONE STOP SOLUTIONS	
http://www.pinguind.co.id               O  *  R
UIN   : 49727749 			
telp  : 62-022-2509327                  D  I  E










[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]