universe open problem of c++

i wrote piece of code to open universe, it works in XI3.1(12.1.0.914) but did not work in XIR2(11.5.0.0). here it is:

                Designer::IApplication* mApp;
		Designer::IApplicationPtr lApp(__uuidof(Designer::Application));
		mApp = lApp.Detach();

		mApp->LogonDialog();
		mUniverse = mApp->Universes->Open().Detach();

when it runs in XIR2, i got exception. does anyone has idea about that?


hotmagic (BOB member since 2010-05-31)

here is what i did:

1) compile the program in the environment of XI3.1, generate release exe file
2) copy the exe file to another XI3.1 machine and it can run
3) copy the exe file to another XIR2 and exception occured.

hotmagic (BOB member since 2010-05-31)