I am able to compile the filter ; while registering I got the following error:
---------------------------
RegSvr32
---------------------------
DllRegisterServer in D:\PushSource\Debug_Unicode\PushSource.dll failed.
Return code was: 0xc0000005
---------------------------
OK
---------------------------
Solution:
============
This error will come if any dependency has been removed
The problem is it doesnt have any dependency. I have checked it with depends.exe.
CFactoryTemplate g_Templates[3] =
{
{
g_wszPushDesktop, // Name
&CLSID_RxVideoReceiver, // CLSID
CRxReceiver::CreateInstance, // Method to create an instance of MyComponent
NULL, // Initialization function
&sudPushSourceDesktop // Set-up information (for filters)
}
};
I modified the above code as
CFactoryTemplate g_Templates[] =
{
{
g_wszPushDesktop, // Name
&CLSID_RxVideoReceiver, // CLSID
CRxReceiver::CreateInstance, // Method to create an instance of MyComponent
NULL, // Initialization function
&sudPushSourceDesktop // Set-up information (for filters)
}
};
Now I am not getting any errors.
if I g_Templates[3] means, the regsvr32.exe expects the another 2 GUIDs and informations. Since it doesnt have the values,
it gives read violation error.
No comments:
Post a Comment