I'd be interested to know how rotatelogs.exe handles this (since I assume it uses the function), there may be a clue in it or it may just crash as well.
Just for info again, rotatelogs.exe was causing numerous (thousands) errors like those
AH00106: piped log program 'C:/Apache24/bin/rotatelogs.exe D:/lxxxx/xxxx-%Y-%m-%d.log 86400' failed unexpectedly
AH00106: piped log program 'C:/Apache24/bin/rotatelogs.exe D:/yyyy/yyyy-access-%Y-%m-%d.log 86400' failed unexpectedly
AH00106: piped log program 'C:/Apache24/bin/rotatelogs.exe D:/zzzz/zzzzz-access-%Y-%m-%d.log 86400' failed unexpectedly
AH00106: piped log program 'C:/Apache24/bin/rotatelogs.exe D:/wwww/wwwww-access-%Y-%m-%d.log 86400' failed unexpectedly
AH00106: piped log program 'C:/Apache24/bin/rotatelogs.exe D:/ttttt/ttttttt-access-%Y-%m-%d.log 86400' failed unexpectedly
There was no misspelling in the config files (at least not that I was aware of and none in all the log files) but the server was getting these errors after running 1 to 3 h and then quickly getting really unstable.
The same problem occurred with cronolog.exe so I think we are talking about a totally different problem.
I was never able to find out why and that's why I decided to switch to mod_log_rotate.
It was a transfer from an 5 years old server with Apache 2.2 vc6 (from the apache group) installed to a powerful brand new server. Just been able to run without rotating logs so far but the server is in production and has now been stable for the last 12 hours with rotating logs.
I might be able to sleep tonight. I'll check tomorrow morning, error log and all...
No news here will mean good news.
Thanks to everybody at apachehaus.com for compiling and delivering theses binaries.