News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Task Schedule 2.0 examples

Started by TimoVJL, December 09, 2025, 08:42:00 AM

Previous topic - Next topic

John Z

#15
While the prior code drop does work quite well, there was a hidden bug.  The bug manifests when there is even a 1 byte change in the last message box Title!  How lucky can you get :)

The new code is attached. the 'fix' is to SysAllocString(L"") the variant strings, even though they are NULL. Of course free them when done as well.  With these changes message box Title length no longer crashes the code, and complies with M$ documentation.

Revised source attached

John Z