Skip to main content

Exception in application program using VisiBroker Standard C Libraries (STL)

  • February 16, 2013
  • 0 replies
  • 0 views

Problem:

  • Product Name: VisiBroker C
  • Product version: 5.x
  • Platform: Windows 2000 Prof
  • Compiler: MSVC 6

When an application, compiled with STL-debug-application and release VisiBroker-libraries (*pr.libs), has been linked, the debug version of application will throw an unhandled exception if a CORBA exception is thrown.

Example:

try {

  do something

} catch (CORBA::Exception &exc) {

  std::cerr << exec << std::endl;

}

Resolution:

At the project setting, go to the "Link" tab, and then under "Object/library modules", add "msvcprt.lib".

This solves the problem with Standard library.


#C
#STL
#VisiBroker
#Security
#c