This question already has answers here:
When and why will a compiler initialise memory to 0xCD, 0xDD, etc. on malloc/free/new/delete?
(9 answers)
What are the debug memory fill patterns in Visual Studio C++ and Windows?
(3 answers)
Closed 2 years ago.
I got this error when debugging in VC++: _Scary->_Myhead was 0xDDDDDDDD. I would like to know what this error means, possible sources, and possible solutions. I think it may have something to do with std::map usage, but I'm not sure. For reference, the debugger leads me to a file called "xtree". Unfortunately, I have no idea how to reproduce this because it is a big project and I do not know why this error is occuring.
Related
This question already has answers here:
C++ cache aware programming
(10 answers)
Closed 7 years ago.
I am profiling my code on various CPUs running Windows7 and my results so far suggest that I need to tune a buffer size proportional to the machine's L2CacheSize or L3CacheSize. Is there a way to obtain these parameters from C++?
You can use the GetLogicalProcessorInformation function to get that. It returns an array of SYSTEM_LOGICAL_PROCESSOR_INFORMATION structures which contain a CACHE_DESCRIPTOR structure, which provides the cache size information.
This question already has answers here:
Getting memory information with Qt
(3 answers)
How to get memory usage at runtime using C++?
(11 answers)
Closed 8 years ago.
I am looking for a way to retrieve the RAM memory size of my computer in C++ with Qt.
My primary target is Windows, if that would make things easier.
This question already has answers here:
How can we check if a file Exists or not using Win32 program?
(9 answers)
C++: Which is the best method of checking for file existence on windows platform [duplicate]
(11 answers)
Closed 9 years ago.
I need a function in c++ to check if a given path/filename exists on the computer.
Can anyone help me?
This could be another possibilty besides the ones from the comments
PathFileExists
This question already has answers here:
Is it possible to "decompile" a Windows .exe? Or at least view the Assembly?
(16 answers)
Closed 7 years ago.
Does someone know how to open an MFC application to get the source-code?
(I want to know how it works)
MFC is compiled from C++ source, so it can't be recovered. You can use a decompiler on it, but the source you get back won't be particularly instructive.
There's a good related question on debugging, disassembling and decompiling you can check for more links.
This question already has answers here:
Cross-platform crash handler
(3 answers)
Closed 9 years ago.
Are there any cross platform crash reporters for C++ besides google-break pad? I have seen google-breakpad but it has very very limited documentation, and I have nothing seen very much mentioned here, google or other source websites
Have a look at BugTrap which might help you.