What should I do for creating instance for apprentice server by preventing that issue:
ApprenticeServerComponent^ invServer = nullptr;
ApprenticeServerDocument^ invDoc = nullptr;
Type^ type;
type = Type::GetTypeFromProgID("Inventor.ApprenticeServer");
invServer = (ApprenticeServerComponent^)Activator::CreateInstance(type);
Exception thrown at 0x00007FFEC0A4C883 (rse.dll) in ConsoleApplication10.exe: 0xC0000005: Access violation writing location 0x00007FF49CEA1F38.
User contributions licensed under CC BY-SA 3.0