I don’t think it has anything to do with algorithm, bcoz Kleopatra and Gnu (command mode) purely works fine with me EXCEPT in Outlook. I suspect it’s something to do with Outlook Plugin.
PS:I’m now using curve25519, the PGP key has a password to protect itself.
Hi, sorry you had to wait so long for an answer but we had public holidays over easter…
It will take time to check the logs. Yes, this has certainly not anything to do with the algorithm.
And GpgOL is our component with the most issues, because it’s behavior is influenced by changes in Outlook and in all other COM-Add-ins you may have installed.
Why do you have “Send OpenPGP mail without attachment as PGP/inline” set? This option should usually not be used, PGP/inline is deprecated.
Another thing I notice is that you say it gets worse when you set “Resolve recipient keys automatically”. I guess that here the reply time of the configured servers could maybe be an issue.
Do your hangs maybe only occur when not all of the recipients certificates are already in your certificate list?
Why do you have “Send OpenPGP mail without attachment as PGP/inline” set? This option should usually not be used, PGP/inline is deprecated.
Of course I know it’s NOT safe to send with a plain of text….. But just for a test only and I want to know more about the issue (what aspects)….ect in details.
BTW: Maybe next time you can add a red warning beside the choice: (Not recommanded or Deprecated)
In order to simplify the issue, I just did an experienment by sending the letter to myself with the same email (Only one email), this also happens.
No problem, I think I can wait for your answer to solve it totally
I didn’t take a look at your source code, but if there’s something to do with std:wstring_convert, or something related it the char convert, maybe you should avoid doing it
std::wstring_convertis now abandonedsince C++17 by marking a deprecated label, because there's something issue in the compatible with some platforms of windows,Linux for some unknown issues, and it will no longer be used in the future, and it will be totally removed from C++ 20.
It calls Windows WideCharToMultiByte to get the required buffersize, then mallocs a buffer and then WideCharToMultiByte again with the buffer to do the conversion.
sanitizeFileName does use some basic std::string stuff (erase, find, remove, regex_match, strlen) but on a 13 char long string those shouldn’t take a second or worse minutes.
Also later in the log (line 3920) get_oom_object call takes nearly a minute while all the other calls for that object later like on line 3970 return within the same second.
So the question is what is slowing the PC down so much.
That is the guess of @mmo and it’s a logical explanation. 4GB is not much for WIN11, though the requirements of their IoT version is probably less than the regular one.
I would monitor memory and load of your system and also which processes are running and might be problematic when the issue occurs.
I don’t think it a good idea if you use “std:string” to process with Non-Lartin letters, bcoz it copes with them “one by one” like what it does for ASCII letters. So if possible, maybe you can consider:
Use “std:wstring” instead of “std:string” to cover all kinds of letters in union.
Use “Boot”(@SEWeiTung )’s idea (Better, open source to be on diff platforms in union).
Hi @Susi, you can not set to UTF-8 in Gpg4win, this is a setting of your operating system. You’ll find instructions on the internet.
UTF-8 is the most widespread encoding and can encode non-latin characters, too. Encodings like Shift-JIS are no longer needed afaik and used by a minority only even in countries with CJK languages.
as your symptoms may be the same as the original poster’s, but the chance is high that your situation is quite different. (So often it is best to open a new discussion if the old one seems different, but now we are here, which is fine.)
Can you state the precise version of Windows, its language settings and the versions of Gpg4win and Outlook you are using?