Decoda and VC++ 2008

nathanmcdanielnathanmcdaniel Join Date: 2010-02-25 Member: 70709Members
Is there anything special I need to know about debugging a process with Lua code in it, compiled in VC++ 2008?

We had a 2003 project and it did work, but when we moved to 2008 it no longer worked. We did restructure the directories a bit, so there's a possibility that has introduced an error as well, but we've tried copying all of the C++ pdbs into the executable directory (previously they were all in the same directory).

I've tried both attaching to the process and starting the process from Decoda. In both cases the lua source-code doesn't show up in the debugger. I've added the lua source files to the project before loading and before attaching.

The specific message I'm getting when I try to open the lua module in Decoda is: "The source code for this script is not available. To view script source code, the script file must be added to the current project, or the debugger must be attached when the client loads the file."

I am using the most recent version of Decoda (1.12).

Any ideas?

Thank you,

Nathan

Comments

  • nathanmcdanielnathanmcdaniel Join Date: 2010-02-25 Member: 70709Members
    So I've been informed that at the same time we upgraded to VC++ 2008, we upgraded Lua to 5.1.4 (from 5.1.3). Could this be the issue?

    Thank you,

    Nathan
  • joessujoessu Join Date: 2010-01-22 Member: 70263Members
    I'm taking a wild guess that is the problem.

    did you try a separate project and link it as a dll with the old version and the new?

    that would verify it.

    -J

    Sorry i couldnt be of much more help then that.
  • vsek006vsek006 Join Date: 2011-03-26 Member: 88690Members
    This is because apparently the compiler thinks that by printf you mean a pointer to an entry in the Import Table of the PE instead of a pointer to the the function itself.
    ===========
    <a href="http://www.fachuebersetzungsagentur.com" target="_blank">Spanisch Deutsch Uebersetzung</a>
    <a href="http://codeback.net" target="_blank">programming</a>
Sign In or Register to comment.