Ask questions about Windows programming with Visual C++ and help others by answering their questions.
Hi, I have a large amount of data being passed from a hardware device into a safearray. I am using this safearray t communicate all that data to a VB ActiveX Control using a event to tell the container that data is ready, but when I call the function GetData is causes all of the program to freeze, is this a problem that safearray can not keep up or something? This is the code I'm using to get the Data, is there anything wrong in it? SAFEARRAYBOUND bound; bound.cElements = 350000; bound.lLbound = 0; imageData->vt = VT_UI1 | VT_ARRAY; imageData->parray = SafeArrayCreate( VT_UI1, 1, &bound ); void * pDest; SafeArrayAccessData( imageData->parray, &pDest ); memcpy( pDest, &hwdData, 350000 ); SafeArrayUnaccessData( imageData->parray ); Because this data can come up to 150 Hz is there a faster way of doing this. or am I stuck with SafeArrays? Thanks