Cipherous
November 23rd, 2004, 09:21 AM
I am working with the com object and I have not loading anything from a server
the COM object has the following function
ReadFromBlob (int memoryAddressOfTheBlob)
and I have this byte array which has the data that SHOULD be read by the function
I have tried the following but it seems very persnickety, sometimes it loads and sometimes it doesn't
I have tried
assume byteArray is already allocated and has the data already loaded
unsafe
{
fixed (byte* ptr = byteArray)
{
GlobalLock ((int)prt);//global function that
ComObject.ReadFromBlob ((int)ptr);
}
}
the COM object has the following function
ReadFromBlob (int memoryAddressOfTheBlob)
and I have this byte array which has the data that SHOULD be read by the function
I have tried the following but it seems very persnickety, sometimes it loads and sometimes it doesn't
I have tried
assume byteArray is already allocated and has the data already loaded
unsafe
{
fixed (byte* ptr = byteArray)
{
GlobalLock ((int)prt);//global function that
ComObject.ReadFromBlob ((int)ptr);
}
}