gpeme_get_key returns a 'general error' after some time.

Florian Schwind f.schwind at
Thu Jan 21 11:43:16 CET 2010

Hello all,

I have some strange problems using gpg (1.4.9) resp. gpgme (1.1.4) and 
hope someone can help me.

I'm using gpgme to encrypt a lot of files and at some point the function 
"gpgme_get_key" returns a "General error" and all further encryptions 
fail until I restart the process. Sometimes the system runs for only a 
few minutes and sometimes it lasts for hours before the error occurs.

My first thought was that there might be some problems with 
multi-threading so I synchronized all calls and took care of the 
encryption never running parallel.

Does someone has any idea how to fix this?

Thanks for your help!

Florian Schwind

More information about the Gnupg-users mailing list