Though i have chkd with the memory debuggers but it responds with the same
Here is the snippet of my program
If i remove the particular array in my program i get succcessful transaction.
---------------------------------------------------------------------------------------------------------------------------------------

 void TestRfidWrite()
 682 {
 683         IC_UINT32 status = IC_OK;
 684         IC_UINT32 wcount = 0;
 685
 686         IC_UINT8 ACCType = 0;
 687         IC_UINT8 vACCType = 0;
 688         IC_UINT8 iACCType = 0;
 689         IC_UINT8 yiACCType = 0;
 690         IC_UINT8 ihACCType = 0;
 691         IC_UINT8 CCType = 0;
 692
 693         //Here is an array that i don't use anywhere in the function
 694         IC_UINT8 CardNo[100] = {1,0,0,0,0,0,0};
 695
 696         printf ("\n\nAPI RfidWrite is being tested.\n");
 697
 698         printf("Byte OffSet : \n");
 699         scanf("%d",&i_position);
 700
 701         printf("\nCount  \n");
 702         scanf("%d",&wcount);
 703         for(i=0;i< wcount;i++)
 704                 WriteBuffer[i]= 0x22;
 705 /*
 706                 WriteBuffer[1]= 0x0B;
 707                 WriteBuffer[2]= 0x0C;
 708                 WriteBuffer[3]= 0x0D;
 709                 WriteBuffer[4]= 0x0E;
 710 */
 711     status = ipi_RfidWrite ( &hCard, i_position , WriteBuffer, wcount );
 719
 720         if(status != 0)
 721         {
 722                 printf("Api RFIDWrite FAILED \n");
 723         }
 724         else
 725         {
 726                 printf ("API RfidWrite is successful.\n");
 727         }
 728
 729 }
--------------------------------------------------------------------------------------------------------------------------------------

 The above write function calls

SCardTransmit
   rv = SCardTransmit(*CardHandle, &pioSendPci, bSendBuffer,
send_length, &pioRecvPci, bRecvBuffer, &length     );


after this SCardTransmit I get the insufficient buffer error for
pcsc_stringify_error.



Cheers,
Ratnavel
_______________________________________________
Muscle mailing list
Muscle@lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to