Hi all,
Not sure if this is just me or has anyone else found any issues with THREADCOUNT since upgrading to PBCC V5.04.
I have a console program which has been running for several years, compiled under PBCC V5.02. I have recently upgraded to V5.04, missed V5.03 completely, but the same program with no source changes at all will no longer close!!!
I have a small section at the end of the program which loops & waits for all running threads to terminate, I use THREADCOUNT=1 as the loop exit condition, on exit from the loop and following a little tidy up, I simply exit the program, the console window closes, all done. BUT ...
Since compiling the same program on V5.04, the console window stays open and the program appears to hang. I found through trial and error that by simply including the line 'i=THREADCOUNT' just prior to exit, everything now works as it should
I happy to leave this fix in place, since it gets around the problem, but I was just wondering if anyone else has had any similar issues
Thanks
Not sure if this is just me or has anyone else found any issues with THREADCOUNT since upgrading to PBCC V5.04.
I have a console program which has been running for several years, compiled under PBCC V5.02. I have recently upgraded to V5.04, missed V5.03 completely, but the same program with no source changes at all will no longer close!!!
I have a small section at the end of the program which loops & waits for all running threads to terminate, I use THREADCOUNT=1 as the loop exit condition, on exit from the loop and following a little tidy up, I simply exit the program, the console window closes, all done. BUT ...
Since compiling the same program on V5.04, the console window stays open and the program appears to hang. I found through trial and error that by simply including the line 'i=THREADCOUNT' just prior to exit, everything now works as it should

I happy to leave this fix in place, since it gets around the problem, but I was just wondering if anyone else has had any similar issues

Thanks
Comment