4

I am trying to search for a string in the memory of a program I am debugging with visual studio 2010. I am trying to use the Immediate Window to do this but whenever I try (.S -A 0x400000 0x400200 "MyString") It gives me the error "CXX0014: Error: missing operand" and I am not sure why it does or how to fix it. Any help would be greatly appreciated.

Ian Lundberg
  • 1,813
  • 10
  • 31
  • 48
  • 1
    http://stackoverflow.com/questions/4903532/is-search-memory-in-visual-studio-2008-10s-immediate-window-broken (sorry for the duplicate vote since the link is for C++, but it might be helpful anyway) – Tim Schmelter Mar 19 '12 at 21:01

1 Answers1

0

If I right understood you are searching for a string value (suppose some runtime value) among all values available in your program during the run. If so, I don't think it's even possible, not that I'm aware of, from Visual Studio. There are always hacking solution for that, like dump process memory, read assembly, but even there you can met problems, if (just an example) the program (at this point I suppose it wasn't written by you) store the values in SecureString.

If this is not your intention, please clarify.

Tigran
  • 61,654
  • 8
  • 86
  • 123
  • 1
    http://msdn.microsoft.com/en-us/library/ms171363(v=vs.100).aspx That is how you search memory, but when I try to do it in the Immediate Window I get the error "CXX0014: Error: missing operand" I am trying to figure out why I get the error and how I can fix it so it searches. – Ian Lundberg Mar 19 '12 at 21:15
  • @IanLundberg that link specifically says at the top its for C++ applications – Dave Jan 17 '22 at 12:31