R
real_RohitAila
Guest
Hi,
I'm trying to convert a 32-bit project built in Visual Studio 6 to a 64-bit project in Visual Studio 2008. I have corrected all the compile errors that occur after converting. But now when i try to debug my application i see this error:
First-chance exception at 0x6fece8e1 in pscape.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
and the application crashes. The error is shown on the line:
BEMMSLib::ICollectionPtr pGroups = pDatabase->QueryGroups();
where as the function QueryGroups is obtained from a .tli file. I don't understand why it says access violation, because it is able to access a different function from this class.
Body of QueryGroups function:
inline IDispatchPtr IDatabase::QueryGroups ( ) {
IDispatch * _result = 0;
HRESULT _hr = raw_QueryGroups(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
Can anyone help me with this please?
Continue reading...
I'm trying to convert a 32-bit project built in Visual Studio 6 to a 64-bit project in Visual Studio 2008. I have corrected all the compile errors that occur after converting. But now when i try to debug my application i see this error:
First-chance exception at 0x6fece8e1 in pscape.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
and the application crashes. The error is shown on the line:
BEMMSLib::ICollectionPtr pGroups = pDatabase->QueryGroups();
where as the function QueryGroups is obtained from a .tli file. I don't understand why it says access violation, because it is able to access a different function from this class.
Body of QueryGroups function:
inline IDispatchPtr IDatabase::QueryGroups ( ) {
IDispatch * _result = 0;
HRESULT _hr = raw_QueryGroups(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
Can anyone help me with this please?
Continue reading...