x13pixels / remedybg-issues

Public repository for tracking issues (bugs and features) for the RemedyBG debugger
85 stars 0 forks source link

Trying to display std::string sometimes lead to "unable to read process memory" #302

Closed neeraj9 closed 7 months ago

neeraj9 commented 7 months ago

In general RemedyBG works amazingly good, but sometimes I notice that it cannot access process memory. I am running remedybg as a regular user on Windows 11.

The following example demonstrates me trying to display a std::string variable url_. Any pointers to understand this better will be helpful.

*url_._Mypair._Myval2._Bx._Ptr;??? (unable to read process memory);char;
x13pixels commented 7 months ago

Looks like if the std::string's test._Mypair._Myval2._Myres is less than 16 then the expression should be url_._Mypair._Myval2._Bx._Buf instead of url_._Mypair._Myval2._Bx._Ptr. Closing this a duplicate as it will be rolled in as part of the natvis / custom watch work.

Thank you!