Some ambigious access violation

Sai-Lai Lo S.Lo@orl.co.uk
Wed, 25 Feb 1998 21:12:17 GMT


>>>>> Henrik Schulz writes:

> Dear all,
> after installing the new omniORB 2.4, I have just adjusted the project
> files on NT (paths, include, macros....). And compiled the source of the
> project modules. Compilation was successful and without any relevant
> warning or error. The demos eg3 is working fine too.
> We dealing with some language understanding and speech recognition as
> well and are using the IBM ViaVoice toolkit for development, that's why
> smapi.dll is loaded too. When orb = CORBA::ORB_init(0,NULL,orbName) is
> called, an unhandled exception in srdlg.exe (omniorb24_rtd.dll
> 0xC0000005 Access Violation), this appears by using the non-debug DLL' s
> too.

orb = CORBA::ORB_init(0,NULL,orbName)
                      ^^^^^^^^^^^^^^

Can't have 0 as the first argument of ORB_init because it is int&.

static ORB_ptr ORB_init(int &argc, char **argv, const char *orb_identifier);

I think the compiler should have warned you, no???

Sai-Lai