1 2 3 4 Previous Next 47 Replies Latest reply on Nov 15, 2019 11:32 AM by maVa_1182686 Go to original post
      • 45. Re: Issues with isoc.FinishDataXfer(ref cBufs[k], ref xBufs[k], ref len, ref oLaps[k], ref pktsInfo[k]))
        maVa_1182686

        It looks right. But what am I doing wrong then?

        How do you know where in the xBuf the data is?

        I really don't get it...

        • 46. Re: Issues with isoc.FinishDataXfer(ref cBufs[k], ref xBufs[k], ref len, ref oLaps[k], ref pktsInfo[k]))
          maVa_1182686

          I'll try to go into more detail tonight and I'll try to find the differences in your streamer code and mine

          • 47. Re: Issues with isoc.FinishDataXfer(ref cBufs[k], ref xBufs[k], ref len, ref oLaps[k], ref pktsInfo[k]))
            maVa_1182686

            OK...I understand now! Thanks!

            if (pkts[j].Length > 0)    <<<<<<<<<CRUCIAL!

                                            {

                                                //file.Write(xBufs[k], (EndPoint.MaxPktSize) * j, 1);

                                                //file.Write(xBufs[k], ((EndPoint.MaxPktSize) * j) + 1024, 1);

                                                //file.Write(xBufs[k], ((EndPoint.MaxPktSize) * j) + 2048, 1);

                                                //file.Write(xBufs[k], ((EndPoint.MaxPktSize) * j) + 3072, 1);

             

             

                                                Console.WriteLine(xBufs[k][(EndPoint.MaxPktSize) * j + 0 * 1024].ToString());

                                                Console.WriteLine(xBufs[k][(EndPoint.MaxPktSize) * j + 1 * 1024].ToString());

                                                Console.WriteLine(xBufs[k][(EndPoint.MaxPktSize) * j + 2 * 1024].ToString());

                                                Console.WriteLine(xBufs[k][(EndPoint.MaxPktSize) * j + 3 * 1024].ToString());

             

             

             

             

                                                /*if (file_buffer[0] > 0)

                                                {

                                                    file.WriteByte(0xCC);

                                                    file.WriteByte(file_buffer[0]);

                                                    file_buffer[0] = 0;

                                                }*/

                                            }

            1 2 3 4 Previous Next