I am adding ACE / TAO as a component to a large project which is written in C and C++. I received an .IOR file from the server, and I use the .IOR file when calling CORBA::ORB_init(argc, argv)
I constructed my own argc and argv as followed
int argc = 2;
char *argv[2] = { 0 };
argv[0] = "-k";
argv[1] = "D:\\IOR\\test.ior";
CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
When I call ORB_init, I get a "Debug Assertion Failed!", and it points to C:\Program Files (x86)\Windows Kits\10\Source\10.0.17763.0\ucrt\heap\debug_heap.cpp line: 908
_ASSERTE(is_block_type_valid(header->_block_use));
CORBA::ORB_init was called very early in the code, so there isn't many things that can go wrong. Am I missing something obvious?