DoLuaString crashing menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    jameyboor's Avatar Private
    Reputation
    6
    Join Date
    Aug 2011
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DoLuaString crashing

    Hey,

    I'm using TOM_RUS' WowAddin https://github.com/tomrus88/WowAddin which is working great but I've come across a problem.

    I've extended the original source code and added some Lua related functions :
    Code:
    void(__cdecl * LuaManager::RegisterLuaFunc)(char* functionName, int(__cdecl* function)(lua_State*)) = reinterpret_cast<RegisterFrameFunctionPtr>(REGISTER_LUA_FUNCTION);
    int(__cdecl* LuaManager::LuaGetTop)(void* lua_state) = reinterpret_cast<FrameLuaGetTopPtr> (LUA_GETTOP);
    void(*LuaManager::DoLuaString) (char const* code) = reinterpret_cast<LuaDoStringPtr>(LUA_DOSTRING);
    etc..

    I'm calling DoLuaString in a function in the DLL to execute a particular Lua function and while this works upon the player entering the world/logging in, it crashes when I use it while for example a gossip menu is open or closed just yet.
    I've did some research and found that DoLuaString indeed crashes if it's used outside the main thread.
    If this is indeed the case, how would I be able to call a Lua FrameXML function from the DLL, are there other ways?
    Last edited by jameyboor; 04-13-2015 at 12:38 PM.

    DoLuaString crashing
  2. #2
    culino2's Avatar Elite User
    Reputation
    336
    Join Date
    Feb 2013
    Posts
    183
    Thanks G/R
    139/72
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "DoString" takes 3 parameters, __cdecl is missing.
    Master has posted a great main-thread tutorial, do your stuff in a pulse function.

    http://www.ownedcore.com/forums/worl...eakpoints.html ([Tut] Hooking threads without mem writes or breakpoints)

  3. #3
    jameyboor's Avatar Private
    Reputation
    6
    Join Date
    Aug 2011
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Works now, thanks.

Similar Threads

  1. Making WoW Clients crash
    By Siker in forum World of Warcraft Exploits
    Replies: 103
    Last Post: 12-31-2006, 09:42 AM
  2. Thought id move this here Crash A Computer!!!
    By codycondame in forum World of Warcraft General
    Replies: 6
    Last Post: 10-11-2006, 06:03 PM
  3. Crash Peoples Computer
    By codycondame in forum World of Warcraft Exploits
    Replies: 9
    Last Post: 10-07-2006, 03:27 PM
  4. DBC Edits crashing my wow?
    By dela in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-01-2006, 04:56 AM
  5. Top of Hyjal: Mountain Climb crashed plane
    By Cloud in forum World of Warcraft Exploits
    Replies: 17
    Last Post: 09-18-2006, 09:09 AM
All times are GMT -5. The time now is 08:43 PM. 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