Converting Source to VS2010

Results 1 to 6 of 6
  1. #1
    Sorcerer Supreme kamote is offline
    Member +Rank
    Mar 2012 Join Date
    Maplewood, MOLocation
    326Posts

    Converting Source to VS2010

    So I converted the source to vs2010 and compiled it without errors. but when I run WorldServer it crashes. I tried to debug it and it's pointing me to dbghook.c
    Code:
    int _debugger_hook_dummy;
    
    #ifdef _M_IA64
    #undef _CRT_DEBUGGER_HOOK
    #define _CRT_DEBUGGER_HOOK __crt_debugger_hook
    #endif  /* _M_IA64 */
    
    __declspec(noinline)
    void __cdecl _CRT_DEBUGGER_HOOK(int _Reserved)
    {
        /* assign 0 to _debugger_hook_dummy so that the function is not folded in retail */
        (_Reserved);
        _debugger_hook_dummy = 0; //the break point was here
    }
    I found a forum that said I have to compile all of the dependencies with vs2010 debug. I dont know what that means. And Im sure I compiled my worldserver on Release Configuration. does anyone got any ideas?

    Thanks.


  2. #2
    Cory James Cuvvvie is offline
    Grand MasterRank
    Nov 2009 Join Date
    707Posts

    Re: Converting Source to VS2010

    Are you debugging under the debug configuration or release configuration?

  3. #3
    Sorcerer Supreme kamote is offline
    Member +Rank
    Mar 2012 Join Date
    Maplewood, MOLocation
    326Posts

    Re: Converting Source to VS2010

    well I compiled it in release config. I clicked debug when I it was asking me if I want to debug the program or close it.

  4. #4
    Cory James Cuvvvie is offline
    Grand MasterRank
    Nov 2009 Join Date
    707Posts

    Re: Converting Source to VS2010

    I'm asking only because it looks like the error is from a function associated with debugging. If you're trying to compile it under Release, then that is the configuration you should be debugging, since debugging under the Debug configuration might change some of the pre-processors and make what you're debugging different than what you're actually running after you compile it under Release.

    But beyond that I don't have any suggestions, sorry.

  5. #5
    Sorcerer Supreme kamote is offline
    Member +Rank
    Mar 2012 Join Date
    Maplewood, MOLocation
    326Posts

    Re: Converting Source to VS2010

    im confused why the worldserver called this function even though i compiled it in release mode.. I was running the worldserver when it crashed and lead me to this function.

  6. #6
    Sorcerer Supreme kamote is offline
    Member +Rank
    Mar 2012 Join Date
    Maplewood, MOLocation
    326Posts

    Re: Converting Source to VS2010

    UPDATE: if I turn the Buffer Security check off it runs perfectly. anyone got any Ideas on what's causing this?



Advertisement