| Initialization issues with Managed DirectShow filters |
|
During the past week, I have been tracing C# DS filters in WinDbg and I noticed a warning when the filters get initialized. The warning mentioned that we are creating managed resources during a Dll initialization and this might hang the application. The cause of the warning is the 3rd field of the CFactoryTemplate which points to the function that gets called when the COM object is created. This funtion is usually the CreateInstance member function of our C++ wrapper which created the object that contains our embedded pointer to the managed object. I don't think this is a real problem but if you want to avoid this situation you can declare a static variable to keep track if the managed object has been initialized and create the managed object before its first used.
|
| < Prev | Next > |
|---|











