Thread: Debugger shows 2 different values for the same address...um what?

  1. #1
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,733

    Debugger shows 2 different values for the same address...um what?

    Was trying to fix this function:
    src/libpaw/vfx/PawLoadShader.c * 90e322bab973299323efd1c215df658df8227e54 * Lee Shallis / Dragonbuilder * GitLab

    Which was failing to find a group I know is in the file, was working before I switched to wchar_t* instead of char* (the initial character string read in from the UTF-8 *.ini file is converted to wchar_t* prior to this call, since I'm on linux I believe it's in UTF-32 since I never change the encoding settings and it's a popular distro call manjaro so I doubt they'd be using anything but UTF by default).

    Any help with the problem I was trying to fix would also be appreciated here, but for this thread the main question is why is the debugger showing 2 different starting characters for the same wchar_t*?
    Attached Images Attached Images Debugger shows 2 different values for the same address...um what?-screenshot-2022-09-22-10-11-44-jpg 

  2. #2
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,733
    Never mind about the function fixing part, just finished doing so, few bugs here and there caused by some changes elsewhere in unrelated code. Still want to know why the debugger saw 2 different characters of the same type at the same address simultaneously though.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 08-20-2020, 11:05 PM
  2. wrong result,while debugger shows it right
    By Giwrgows x in forum C Programming
    Replies: 4
    Last Post: 12-29-2015, 02:19 PM
  3. Replies: 10
    Last Post: 06-19-2015, 02:30 PM
  4. Why return values from a function by ref, address
    By jim_0 in forum C++ Programming
    Replies: 1
    Last Post: 02-05-2014, 06:16 AM
  5. TV shows
    By Yoshi in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 12-13-2001, 11:37 PM

Tags for this Thread