> > Can anyone explain why i get output like this in a small > test program: > > Inside Thread > > Main Loop > > Inside Thread > > Main Loop > > Inside Thread > > Main Loop > That's because the line terminator! > #10#13 or #13#10 acts differently > So, check in the source code which one is used, because the > first one is not suitable in Windows! > As you supposedly know, the end line terminator is different > on Mac, Unix and Windows. > Mac only uses #13 > Unix only uses #10 > Windows uses #13#10 (CRLF)
This I do know :) > So just look out for this in the source-code. > Or just use > write('Main Loop',#13#10); > :^) If I do this I get this instead: Inside Thread Main Loop Inside Thread Main Loop Inside Thread Main Loop And one more thing. When the program terminates, my terminal don't work any more either.. So somethings not right someplace.. Another sidenote is that when I don't use threads, the output is as expected..: Main Loop Main Loop Main Loop Main Loop Ole JR _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal