Problems with WoW's PrintChat function menu

Shout-Out

User Tag List

Results 1 to 10 of 10
  1. #1
    MartyT's Avatar Active Member
    Reputation
    39
    Join Date
    Jan 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problems with WoW's PrintChat function

    Hey there,

    I have problems with my little test app. I inject a dll into the process that calls WoW's printchat function and sometimes it randomly crashes. I have no idea why, but it is inside the PrintChat function. I'd be glad if someone could point me if I missed anything.

    Code:
    typedef VOID (__cdecl *fnPrintChat) (CHAR* szMsg, DWORD _1, DWORD _2, DWORD _3, DWORD _4, DWORD _5, CHAR* szAuthor, DWORD _6, DWORD _7, DWORD _8, DWORD _9, DWORD _10, DWORD _11);
    
    fnPrintChat fpPrintChat = (fnPrintChat*)GetDllOffset("WoW.exe", 0x952C0);
    
    for(INT i = 0; i < 50; i++)
    {
    	fpPrintChat("hi thar!", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
    	Sleep(500);
    }
    Thanks!

    Problems with WoW's PrintChat function
  2. #2
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I hear that crash dumps often help diagnose crashes.

    Then again maybe I'm just retarded...

  3. #3
    MartyT's Avatar Active Member
    Reputation
    39
    Join Date
    Jan 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    I hear that crash dumps often help diagnose crashes.

    Then again maybe I'm just retarded...
    I don't think they'll be that useful since it crashes at random addresses.

    This application has encountered a critical error:

    ERROR #132 (0x85100084) Fatal Exception
    Program: D:\Games\World of Warcraft\Wow.exe
    Exception: 0xC0000029 (unknown exception) at 001B:7C95EB28

    This application has encountered a critical error:

    ERROR #132 (0x85100084) Fatal Exception
    Program: D:\Games\World of Warcraft\Wow.exe
    Exception: 0xC0000005 (ACCESS_VIOLATION) at 001B:0040BE5A

    The instruction at "0x0040BE5A" referenced memory at "0x04267000".
    The memory could not be "written".


    ERROR #132 (0x85100084) Fatal Exception
    Program: D:\Games\World of Warcraft\Wow.exe
    Exception: 0xC0000005 (ACCESS_VIOLATION) at 001B:0072A9C4

    The instruction at "0x0072A9C4" referenced memory at "0x13B6B900".
    The memory could not be "written".


    This application has encountered a critical error:

    ERROR #132 (0x85100084) Fatal Exception
    Program: D:\Games\World of Warcraft\Wow.exe
    Exception: 0x80000004 (SINGLE_STEP) at 001B:05321749


    This application has encountered a critical error:

    ERROR #132 (0x85100084) Fatal Exception
    Program: D:\Games\World of Warcraft\Wow.exe
    Exception: 0xC0000005 (ACCESS_VIOLATION) at 001B:007BBC27

    The instruction at "0x007BBC27" referenced memory at "0x6E695F77".
    The memory could not be "read".
    I fail at understanding why it crashes when calling the function. As I mention above, it randomly crashes, sometimes it crashes at the 3rd call, and sometimes at the first.

    Thanks

  4. #4
    kynox's Avatar Member
    Reputation
    830
    Join Date
    Dec 2006
    Posts
    888
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Then again maybe I'm just retarded...
    About fkn time.

  5. #5
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by kynox View Post
    About fkn time.
    Sarcasm

    Pronunciation (IPA): /ˈsɑːkæzəm/

    Noun - sarcasm (plural sarcasms):
    A form of humor that is marked by mocking with irony, sometimes conveyed in speech with vocal over-emphasis. Saying something that is opposite of what is intended to be meant.

    Kynox

    Pronunciation (IPA): /ˈriːtɑː(ɹ)d/

    Noun - retard (plural retards, singular synonym kynox):
    1. (offensive slang) a person with mental retardation
    2. (offensive slang) a stupid person, or one who is slow to learn

  6. #6
    hypnodok's Avatar Member
    Reputation
    19
    Join Date
    Nov 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by MartyT View Post
    Hey there,

    I have problems with my little test app. I inject a dll into the process that calls WoW's printchat function and sometimes it randomly crashes. I have no idea why, but it is inside the PrintChat function. I'd be glad if someone could point me if I missed anything.

    Code:
    typedef VOID (__cdecl *fnPrintChat) (CHAR* szMsg, DWORD _1, DWORD _2, DWORD _3, DWORD _4, DWORD _5, CHAR* szAuthor, DWORD _6, DWORD _7, DWORD _8, DWORD _9, DWORD _10, DWORD _11);
    
    fnPrintChat fpPrintChat = (fnPrintChat*)GetDllOffset("WoW.exe", 0x952C0);
    
    for(INT i = 0; i < 50; i++)
    {
        fpPrintChat("hi thar!", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
        Sleep(500);
    }
    Thanks!
    Have you tried calling this from wows main thread?

  7. #7
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't you think it would crash EVERY time if it was a TLS issue? He said it crashes sparingly at random addresses.

  8. #8
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lanman92 View Post
    Don't you think it would crash EVERY time if it was a TLS issue? He said it crashes sparingly at random addresses.

    Threading does cause some pretty wonky issues, even with the correct TLS pointer.

  9. #9
    MartyT's Avatar Active Member
    Reputation
    39
    Join Date
    Jan 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post

    Threading does cause some pretty wonky issues, even with the correct TLS pointer.
    Yeah, you're right. I figured out what is wrong, sometimes it tries to read stuff from the Thread Local Storage. I detour WoW's GetTLSValue function and feed it with the correct pointer incase the function returns 0.

    Thanks for your guys help, I don't think I'd have thought about the TLS ..

  10. #10
    hypnodok's Avatar Member
    Reputation
    19
    Join Date
    Nov 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would you mind sharing your code with us?

Similar Threads

  1. annoying problem with IDA - decompiling wrong function
    By NitroGlycerine in forum WoW Memory Editing
    Replies: 3
    Last Post: 08-18-2016, 06:21 PM
  2. Problem with WoW Model Viewer 6.0.3
    By Aradroth in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 11-05-2014, 06:39 PM
  3. Replies: 0
    Last Post: 10-21-2010, 12:58 AM
  4. [Question] Problem with WoW Launch
    By UnderCoverValor in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 06-10-2008, 02:51 PM
  5. [Question] Problems with the new WoW update.
    By Aradroth in forum WoW ME Questions and Requests
    Replies: 6
    Last Post: 01-23-2008, 09:40 PM
All times are GMT -5. The time now is 10:37 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search