Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 valgrind 中,我打开--track-origins以找出未初始化值的来源。
--track-origins
在 Windows 上,我使用的是 Dr. Memory,因为据我所知,valgrind 还没有被移植。它报告未初始化的读取,但查看手册我似乎没有找到一个选项,让它找出未初始化值的来源。但它告诉我哪个内存范围有问题。