Latest post Wed, Apr 12 2023 10:40 AM by JakaBac. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • Wed, Apr 12 2023 10:40 AM

    • JakaBac
    • Not Ranked
    • Joined on Tue, Dec 4 2012
    • Posts 27
    • Points 310

    MediaProcessor INotification, IEventNotifier and MEDIAPROCESSOR_DYNAMIC_ALLOCATION


    According to my understanding, INotification and IEventNotifier are supposed to be just interfaces which we implement to get various notifications.

    Why do those need the MEDIAPROCESSOR_DYNAMIC_ALLOCATION macro? This macro expands to definitions of custom new and delete operators.

    The problem is if someone wants derive from both INotification and IEventNotifier to have a single class which will handle all of the notifications. This gives causes the derived class to have both implementations of new and delete which in turn causes compilation errors.

    Is there really a good reason for INotifcation and IEventNotifier having custom new and delete implementations?



Page 1 of 1 (1 items)

© Copyright 2011 Avid Technology, Inc.  Terms of Use |  Privacy Policy |  Site Map |  Find a Reseller