Hi!
I am currently writing a tiny webserver that i can attach to all my applications to give them web functionality. I first started of making all the socket and helper classes to handle the requests, so i only had a socket output or some 100 bytes or so, just a small text saying that the server was running, sent to the browser in html. I later added the ability to open any file in the working directory of the compiled exe, but encountered a small problem. I can only seem to open files that are less than 10mb big. I have heard that c++ natively supports some 2gb or so, so this is a serious issue in the script. I have looked everywhere, and cant find the issue. Everything compiles fine in Visual Studio 2005, but when i run the exe, it just crashes when i try to access any file larger than 10mb in my browser. If i run the exe from visual studio, i get a "Unhandled exception at 0x00401a10 in webserver.exe: 0xC0000005: Access violation reading location 0x01894562." when opening the file, and get this from the deassembler: "00401A10 mov cl,byte ptr [eax]"
I have attached the whole project below, if anyone wishes to check it out and see whats wrong.
:: link removed per Posting Guidelines ::