Posted on 2004-08-16
I'm trying this here because not very many vb programmers work with this I am sure:
I'm using the ACS 30 Reader and an ACOS1 Card and I am calling using APIs to call winscard.dll using VB .Net 2003
I've written a very nice application that works wonderfully.... except...
I have a memory leak.
I've cut out all my code, and I find that it is the API calls themselves that cause the problem.
I'm writing counters onto the card using SCARDTRANSMIT, so I made a stress test that simply puts SCARDTRANSMIT in a loop.
I noticed that when I write over 47,000 times to a counter on the card (in a file that I have set up on the card) that winscard.dll starts hogging all sorts of memory. so that when I get up to 98,000 writes, that windows has
used up to 1 GB of RAM! is there any help anyone can give me here?
like I said, there is like, no other programming than just calling the API.