I tried compiling everything in release mode, and it still didn't work. Now I get the error "The memory could not be 'written'..."
I don't get this I'll go through cutting out bits of code to see if I can sort it out, but still I can't figure out why this is happening.
BTW, lately my computers had a few problems. Every hour or so my screen goes completly crazy, as in parts of the windows appear where they shouldn't. I can't do anything and I am forced to Alt-F4 everything (my mouse is screwed and I cant see the cursor), then Ctrl-Alt-Delete and end task on explorer, and then start explorer again. Its windows 2000 and I've defraged and run Nod32 virus scanner on it, and it hasn't given me any problems. My virtual memory settings give me twice my ram size so I don't think thats a problem, and I have 1/4 of my hard drive empty. Must be time for a format soon
EDIT:
Out of curiosity, this is what the debugger shows
Code:
Loaded 'C:\SWEBS\SWEBSDLLTester\Release\SWEBSDLLTester.exe', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\NTDLL.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\KERNEL32.DLL', no matching symbolic information found.
Loaded 'C:\SWEBS\SWEBSEngine\SWEBS\Release\SWEBS.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\ADVAPI32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\rpcrt4.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\wsock32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\ws2_32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\msvcrt.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\ws2help.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\OLE32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\GDI32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\USER32.DLL', no matching symbolic information found.
Loaded 'C:\PHP\php-4.3.1-Win32\SAPI\php4isapi.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM\php4ts.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\OLEAUT32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\ODBC32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\COMDLG32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\shlwapi.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\comctl32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\SHELL32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\odbcint.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\imon.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\NTMARTA.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\WINSPOOL.DRV', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\mpr.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\WLDAP32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\samlib.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\ntdsapi.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\dnsapi.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\NETAPI32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\secur32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\netrap.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\msafd.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\rsvpsp.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\rapilib.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\wshtcpip.dll', no matching symbolic information found.
The thread 0x550 has exited with code 0 (0x0).