Hello.
I have something really strange happening with a dll. I use it to connect to a
smart card prototype and unlock it with a function called :
authenticate_user
The method returns 0 in case of succes and 10 if an authentication failed (for
any reason I guess).
Now here is what is really strange.
First I created a project which uses JNA, loads the dll, initialize it (another
method from the api) and then tries to connect to the card. It works really
well, i get a 0 as a return and can see ma card unlocked.
Next step was to create a swing application where i could enter my unlock code.
It's part of another bigger application and uses JNA to have round shaped gui '
s.
There with the exactly same code I have a 10 as a return for my function.
I did many tests and I thik this problem only happens when i start using the
swing frames, as if I call my method just before it keeps working well.
Another point is that if i use a really simple gui (created with matisse on
netbeans) and which does'nt use jna, it seems that i don't have the same
problem.
I wonder if :
1) Using jna for the gui and to call my lib at the same time could cause some
trouble in the data i send to my card?
2)There are some known problems of that type in making jna work with a swing
application.
By advance, thank you for your answers.
Jean-Michel