Posted January 1, 201411 yr quick ? Why the hell does my dev-c++ crash with exception c0000005 for any memcpymemsetmemove Rootkit?? ridiculous! Edited January 1, 201411 yr by JMC31337
January 1, 201411 yr Author After careful observations.. fig'd out that including the following as linker options: -lwinmm -lgdi32 -lws2_32 -lpsapi -masm=intel -lcomctl32 -DWIN32 -D_WIN32_IE=0x600 -D_MSC_VER=1100 -liphlpapi -lPSAPI -lwsock32 is all well.. with memcpy, zeromemory, memset, memmove (memcmp always works no matter what) but the above API will throw that c0000005 access violation upon compiling if you include -lntoskrnl test it: #include <stdio.h> #include <string.h> int main() { // define two arrays u, v and initialize u int u[5] = {1, 2, 3, 4, 5}, v[5]; // copy u to v memcpy(v, u, 5*sizeof(int)); // display v for (int i = 0; i < 5; ++i) printf("v[%d] = %d\n", i, v[i]); getchar(); return 0; }add -lntoskrnl and it will error out.. otherwise it compiles/runs fine removing the -lntoskrnlCPU - main thread, module ZMemSee EAX 00000000ECX 0022FFB0EDX 7C90E514 ntdll.KiFastSystemCallRetEBX 7FFD9000ESP 0022FFC4EBP 0022FFF0ESI 0012B3FCEDI 7C901000 ntdll.RtlEnterCriticalSectionEIP 00401220 ZMemSee.<ModuleEntryPoint> adding -lntoskrnl: [C0000005 ACCESS VIOLATION] CPU - main thread, module HAL EAX 00000000ECX 000008A1EDX 7C90E514 ntdll.KiFastSystemCallRetEBX 003F0CE6 Jump to HAL.HalInitSystemESP 0022F9E0EBP 0022F9F0ESI 00000D94EDI 00000001EIP 006ADD5E HAL.006ADD5E Edited January 1, 201411 yr by JMC31337
January 1, 201411 yr Author Use Codeblocks or Codelite instead. you're not the first to say that.. thats for sure.. can i run em off usb like i do Dev-C++ Edited January 2, 201411 yr by JMC31337
January 2, 201411 yr Dev-C++ is extremely outdated and uses a very old version of MingW as its compiler. If you have issues with it, its probably due to its age.You could try updating to a newer version of MinGW and have Dev-C++ use that instead. You are better off looking for a better/newer IDE and compiler though, since the one you are using is really outdated and unsupported now. My personal favorite is Visual Studio. I use 2013. (This is my opinion, and not a must, you are free to use whatever you want.)
January 15, 201411 yr Author Thnx, I'll grab both portables (though 64 bit version will be for "just in case scenario")I'll let ya know, since dev-c++ mirrors broke I haven't searched for more up to date ... Edited January 15, 201411 yr by JMC31337
January 15, 201411 yr I would personally recommend the Visual Studio also. I used to use lcc, but had problems with it.The IDE ain't so bad either especially with the Visual Assist. CZ
January 15, 201411 yr Author hey dont get me wrong; i enjoy using the Visual Studio C++ and C# stuff from MCSFT... I really do... The IDE makes it easy.. but the download install time is out of control for some of these IDE.. when i can use command line compiling for C# and use a free small portable C++ IDE... besides years of doing ASM with TASM32 and C++ with Dev-C (even ASM a lil with Dev-C) , some habits die hard Edited January 15, 201411 yr by JMC31337
Create an account or sign in to comment