Problem with ASP.NET and SysAllocString
Hi,
I have developed an ATL COM component which is called from ASP.NET.The COM defines a function as below.pVal is the return value.
STDMETHODIMP COperations::get_SearchEntry(int opCode, BSTR inValues, BSTR *pVal)
{
//some operations
WCHAR *temp;
temp = function1();
//print temp to file ------Point 1
*pVal = SysAllocString(temp);
//print *pVal to file ------Point 2
return S_OK;
}
I am encountering a problem in this COM when i call this function in ASP.NET.When i look at the error log file which i generate Point1 has been reached but point 2 has not been reached.This problem does not occur always but after 6-7 times(random) but once it occurs it is consistent.
Is it a problem with SysAllocString.?
Thanks in advance for the help
Regards
Dheeraj Bhat
Dont Follow me,I am Lost Too
|