Ignore:
Timestamp:
Mar 15, 2007, 9:42:22 PM (18 years ago)
Author:
cinc
Message:

Parameter checking for object pointer working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nom/class_c/nomcls.c

    r251 r255  
    7979  gchar* nObj;
    8080
    81   if(!nomSelf)
    82     return NULLHANDLE;
    83 
    8481  if(!_ncpObject)
    8582    return NULLHANDLE;
     
    134131                                                    CORBA_Environment *ev)
    135132{
     133#if 0
     134  CORBA_Environment tempEnv={0};
     135  tempEnv.fFlags=NOMENV_FLG_DONT_CHECK_OBJECT;
     136#endif
    136137  _nomRenewNoInit(nomSelf, nomObj, NULLHANDLE);
    137138
    138139  /* And now give the object the possibility to initialize... */
     140  /* Make sure the object is not checked. */
     141  //_nomInit((NOMObject*)nomObj, &tempEnv);
    139142  _nomInit((NOMObject*)nomObj, NULLHANDLE);
    140  
     143
    141144  return nomObj;
    142145}
     
    210213NOM_Scope void NOMLINK impl_NOMClass_nomClassReady(NOMClass* nomSelf, CORBA_Environment *ev)
    211214{
     215  CORBA_Environment tempEnv={0};
     216  tempEnv.fFlags=NOMENV_FLG_DONT_CHECK_OBJECT;
    212217
    213218  nomPrintf("    Entering %s  with nomSelf: 0x%x. nomSelf is: %s.\n",
     
    231236      //if(!_nomFindClassFromName(NOMClassMgrObject, _nomGetName(nomSelf, NULLHANDLE),
    232237      //                        0, 0, NULLHANDLE))
    233       if(!_nomFindClassFromName(NOMClassMgrObject, _nomGetClassName(nomSelf, NULLHANDLE),
    234                               0, 0, NULLHANDLE))
     238      if(!_nomFindClassFromName(NOMClassMgrObject, _nomGetClassName(nomSelf, &tempEnv),
     239                              0, 0, &tempEnv))
    235240
    236241        {
     
    305310{
    306311/* NOMClassData* nomThis=NOMClassGetData(nomSelf); */
    307 
    308   //nomPrintf("    Entering %s  with nomSelf: 0x%x. nomSelf is: %s.\n",
    309   //           __FUNCTION__, nomSelf, nomSelf->mtab->nomClassName);
    310 
    311   NOMClass_nomInit_parent(nomSelf,  ev);
    312 }
    313 
     312#if 0
     313  CORBA_Environment tempEnv={0};
     314  tempEnv.fFlags=NOMENV_FLG_DONT_CHECK_OBJECT;
     315#endif
     316  //  nomPrintf("    Entering %s  with nomSelf: 0x%x. nomSelf is: %s.\n",
     317  //         __FUNCTION__, nomSelf, nomSelf->mtab->nomClassName);
     318
     319  /* Don't check object pointer. We are just created but not yet registered as a class. */
     320  //  NOMClass_nomInit_parent(nomSelf,  &tempEnv);
     321  NOMClass_nomInit_parent(nomSelf, NULLHANDLE);
     322}
     323
     324
     325
     326
Note: See TracChangeset for help on using the changeset viewer.