Creating or accessing the resource manager

// Create the resource manager on first call or retrieve it on other calls:
RED::Object* resmgr = RED::Factory::CreateInstance( CID_REDResourceManager );
if( !resmgr )
  // Handle critical startup errors here.

// Access the resource manager interface:
RED::IResourceManager* iresmgr = resmgr->As< RED::IResourceManager >();

The resource manager is a singleton. Therefore, the first call to the factory will create the object, and all subsequent calls will return the created object. So it's a normal way of doing to access the resource manager object address by creating it again. The resource manager creation code should not fail otherwise REDsdk can't start. If this arise, please check that a fresh REDsdk installation can start, otherwise please check your licensing.