Posted on May 17, 2011 at 13:45''The amazing (sic) thing is that I had no compile errors ever''
No, that it not surprising at all! Having no compiler errors simply tells you that you have not broken any 'C' syntax rules - it tells you nothing about whether your program will operate correctly or not!
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.