prakash ns wrote:

As i have said before...

...and as people have said before, it looks like you have memory
corruption in your code. This isn't really a smartcard or PC/SC-lite
related issue.

Why is it that i don't get an error if i declare an unused variable
that is no way related to my buffer.

Probably because you have memory corruption in your code. You are
very likely overwriting memory that you haven't allocated or that
you have allocated (via malloc() or on the stack as is most likely
in this case) with data that is intended to go into some other
variable or buffer. Your code example leaves out a number of
variable declarations that you use in your code, so it's hard to
tell what the problem might be. You also use scanf to decode and
store data in variables - are you sure that the data type size
you are telling scanf to use matches the size of the variable that
you are trying to stuff the data into?

This is really a basic C programming issue, and I would suggest that
you review your code again (and again and again, if necessary) to be
sure that you are not scribbling over memory that you shouldn't be
scribbling over.

Failing that analysis, I would humbly suggest that you write your
code in Java, or consider using one of those GUI-type code generation
tools where you just move little colored blocks around on the screen
and connect them together with lines and arrows and so on.

Finally, if all else fails, have you considered a career in marketing
or technical support?

mike

----

and the same thing if i comment it i get the problem of insufficient buffer..
I hv checked it out in different machines.

This happens after SCardTransmit().

To be specific the output look like
----------------------------------------------------------
winscard_clnt.c
parameters are not null
1 2 3 4 6 InSufficient Buffer
----------------------------------------------------------

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to