Object Creation and Deletion
Creating an object is equivalent to instantiating a class.
This is done with the MultiCam API function McCreate or McCreateNm.
Creating an object of a specified class has the following effects:
- A new object belonging to the class effectively exists.
- This object has its own designating handle.
- An additional set of parameters owned by the object is created.
User applications can create channel and surface objects as many times as needed. This means that several objects of this class usually exist.
The configuration class exists in a single instance. The board class exists in a single instance for each Euresys board. The board and configuration objects cannot be created by a user application. The configuration object or board objects natively exist when the application connects itself to the MultiCam driver.
When an object is no more needed by the application, it is advisable to release the resources assigned to it. This is done with the MultiCam API function McDelete.