I will revise the question statement so that the problem is clearly stated. The application uses CORBA.
The server implemented as a Dll exports a class called the ContractServer. Within this class there are several methods. One of them is called IntiliazeContractServer(). This function basically reads some ini file and fills in a set of data structures. The same is done for all other servers implemented as Dlls.
Inside the main(), I initialize CORBA classes by calling CORBA::Innit and then create an instance of each of the servers and invoke the initialize method on them. If the Initialize was successful, I call the method obj_is_ready (CORBA specfic) and after all the servers have been initialized, I call impl_is_ready
(CORBA specific again).
When the pplication is run, it throws an exception
(0xE06D7363: First chance exception in MSVCRT.dll). It does not even reach the function main().
I hope the question is more clear now.
// old question
I am developing an application, which loads uses/initialises servers implemented as DLLs. When the calling exe starts an exception is thrown
(0xE06D7363: First chance exception in MSVCRT.dll). This exception arrives even before the execution has reached main(). I have checked all the compile options and they are correct. The application is being compiled with the
/MDd option and inclusion of other libraries has been disallowed using
NODEFAULTLIB:libname. It will be a great help if I can a solution to this problem.