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/src/nombuildclass.c

    r221 r255  
    1616* The Initial Developer of the Original Code is
    1717* netlabs.org: Chris Wohlgemuth <cinc-ml@netlabs.org>.
    18 * Portions created by the Initial Developer are Copyright (C) 2005-2006
     18* Portions created by the Initial Developer are Copyright (C) 2005-2007
    1919* the Initial Developer. All Rights Reserved.
    2020*
     
    969969                                                  ulMajorVersion, ulMinorVersion);
    970970        if(nomClass){
     971          CORBA_Environment * tempEnv=nomCreateEnvNoObjectCheck();
     972
    971973          DBG_NOMBUILDCLASS(TRUE, "%s: class is 0x%x\n", nomClass->mtab->nomClassName, nomClass);
    972974#if 0
     
    977979          priv_checkForNomUnInitOverride( (NOMClassPriv*)nomClass->mtab->nomClsInfo,  ncpParent);
    978980#endif     
    979           _nomInit((NOMObject*)nomClass, NULLHANDLE);
    980           _nomClassReady(nomClass, NULLHANDLE);
     981          /* Make sure the env is marked that we don't chek the object pointer. This would fail
     982             because the class isn't registered yet. */
     983          _nomInit((NOMObject*)nomClass, tempEnv);
     984          _nomClassReady(nomClass, tempEnv);
    981985        }
    982986
     
    993997
    994998      if(nomClass){
    995         _nomInit((NOMObject*)nomClass, NULLHANDLE);
    996         _nomClassReady(nomClass, NULLHANDLE);
     999        CORBA_Environment * tempEnv=nomCreateEnvNoObjectCheck();
     1000        /* Make sure the env is marked that we don't chek the object pointer. This would fail
     1001           because the class isn't registered yet. */
     1002        _nomInit((NOMObject*)nomClass, tempEnv);
     1003        _nomClassReady(nomClass, tempEnv);
    9971004      }
    9981005      return nomClass;
     
    10881095
    10891096  if(nomClass){
     1097    CORBA_Environment * tempEnv=nomCreateEnvNoObjectCheck();
     1098
    10901099    /* Mark the class as using nomUnInit() if any parent did that. We just have to
    10911100       check the flag and the flag of the parent class. This information is important
     
    10941103    priv_checkForNomUnInitOverride( (NOMClassPriv*)nomClass->mtab->nomClsInfo,  ncpParent);
    10951104   
    1096     _nomInit(nomClass, NULLHANDLE);
    1097     _nomClassReady(nomClass, NULLHANDLE);
     1105    /* Make sure the env is marked that we don't chek the object pointer. This would fail
     1106       because the class isn't registered yet. */
     1107    _nomInit(nomClass, tempEnv);
     1108    _nomClassReady(nomClass, tempEnv);
    10981109  }
    10991110  return nomClass;
Note: See TracChangeset for help on using the changeset viewer.