开发者

TLI file throwing exception

I am using CO开发者_运维百科M component in C++/CLI, one of the method of COM, takes 'void *' as parameter. My code compiles fine but throws 'System.Accessviolation' exception at runtime following is the code snippet. What could be reason for this exception.

// C++ managed Code
void ManagedWrapper::InitializeConfig(ManagedConfigruation  ^objConfiguration)
{    
    objConfiguration->SetConfigurationValue();
         IntPtr p = objConfiguration->GetObjectPtr();
    m_objCameraConfig->InitializeNetworkConfig(p.ToPointer());

} 

//COM signature for InitializeNetworkConfig in IDL file
[helpstring("method InitializeCameraConfig")] HRESULT InitializeNetworkConfig([in] void *configparam);


How old is the COM object and do it need administrator priviliges? I know that some core functionality got the UAC leash on them when Windows moved from XP to Vista and 7. It maybe totally wrong but hopefully that gives you a pointer in the right direction...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜