March 20th, 2013, 11:54 AM
Er... No. queue needs a type of data that is to be stored. PVOID is not a suitable type as this is just a pointer to void.
I've knocked up some code to demonstrate the idea between a producer...
March 19th, 2013, 11:33 AM
for(int i = 0; i < 2048; i++)
{
TempRealDataArray[i] = (*(bTo + i)); //This array data passed to paint method to drawn an image.
if(i == 1030) Temp[cnt] = TempRealDataArray[i]; //To find the...
March 16th, 2013, 05:11 PM
Where is this data coming from and how does it get set into the memory pointed to by pvData? Is one thread producing this data and another thread processing it?
March 16th, 2013, 07:06 AM
If all you need is a byte pointer to the data for drawing purposes, then replace
PVOID pvData = (PVOID)data;
byte *bPoint = (byte*) pvData;
byte TempArr[1024];
byte *bTo = TempArr;
March 13th, 2013, 08:29 AM
The numbers are the difference between two calls to QueryPerformanceCounter. For the sake of the comparisons I did it doesn't really matter what are the units of measurement - just the relative...
March 12th, 2013, 08:34 AM
First, your code has a problem
TempArr[i] = (byte) (*bPoint + i);
should be