Closed mikobeng closed 2 years ago
The problem manifests itself in older computers, probably because of slow rotational media and other data that makes WhatsApp's startup time be bigger than the timeout defined in
WhatsAppTray.cpp
383: auto result = WaitForInputIdle(pi.hProcess, 10000);
In my system WhatsApp takes 40s to launch, 100+s to react. 10s is not enough to let WhatsApp load properly. I changed the value to 60000 to test it but the solution doesn't compile using VS2019, even after
20: #define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING 1
21: #include <filesystem>
22: #include <experimental/filesystem>
so the code must be changed in a greater measure to be able to be compiled on MSVS 2019, and as I'm not aware about the reason the author chose to use 2017 and not update it to 2019, I cannot install MSVS 2017, and the author is in a better position about issuing a new version with the problem fixed, maybe it can be better to wait for an answer from @D4koon before taking a bigger step.
As a suggestion I would say to be able to define the timeout to be configured from command line as a parameter. So we could have some flexibility to adapt it to older system's limitations and even make the program handle even extreme conditions.
same problem here, a parameter to configure would be a nice option
I changed the wait-time to 60 seconds
Please uninstall your current version of WhatsappTray and install with the 'WhatsappTray 1.7.2 DEBUG installer' from this pullrequest: https://github.com/D4koon/WhatsappTray/actions/runs/1431282311
This should be much better with 1.8.0 https://github.com/D4koon/WhatsappTray/releases/tag/v1.8.0 Feedback would be nice. Thank you
If there is still an problem, open a new issue
Every time I first log in, this popup appears:
I'm not sure what's wrong so I'm leaving the log and what I changed in appData.ini
Log:
appData.ini
WhatsApp still opens despite the error, just that it's default WhatsApp.