how to extend the LONG Len parameter in BeginDataXfer

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
liwe_284431
Level 1
Level 1

 Hi~

   

I have encountered a problem,

   

 

   

LONG record_size = 1024x512x2048

   

UCHAR * img_buffer_record1 = (UCHAR *)calloc(record_size, 1)

   

pContext=pBulkEpIn->BeginDataXfer(img_buffer_record, record_size, &oRdOvLap);

   

 

   

If the record_size = 1024x512x2048 , the BeginDataXfer will crash and my PC will show the blue screen, I have to reboot it....

   

However, if record_size = 1024x512x2048, it works well.

   

 

   

Is there any possible to enlarge the len and the buf of "PUCHAR BeginDataXfer(PUCHAR buf, LONG len, OVERLAPPED *ov);"???

   

My computer is Windows 7 64bit, 8GB memory

   

Thanks!

0 Likes
1 Reply
liwe_284431
Level 1
Level 1

 there is a wrong word

   

However, if record_size = 1024x512x1024, it works well.

0 Likes