Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
Problems compiling in Windows
Author Message
JKO Offline
Junior Member

Posts: 10
Joined: Jul 2010
Reputation: 0
Post: #3
RE: Problems compiling in Windows

Quote:My penumbra.exe did not generate an hpl.log, but the vanilla one did straight away. I do run penumbra from the redist folder (and the project is linked to it). I tried running penumbra in debug with the breakpoint at hplmain, as you asked, here is the debug error it gives me:

http://img690.imageshack.us/img690/8123/...adebug.png

The codes that causes the problem, are in OALWrapper.
This is the code of the 2nd line in the debug stack:
bool                    iOAL_LoggerObject::mbLogEnabled = false;
eOAL_LogOutput            iOAL_LoggerObject::mLogOutput = eOAL_LogOutput_File;
eOAL_LogVerbose    iOAL_LoggerObject::mLogVerboseLevel = eOAL_LogVerbose_Low;
wstring                    iOAL_LoggerObject::msLogFile = BuildLogFilename("OAL.log");  <----(This line)

And this is the code where the crash happens:
#if defined(WIN32)

        WCHAR sPath[MAX_PATH];
        if(SUCCEEDED(SHGetFolderPath(NULL,
            CSIDL_PERSONAL | CSIDL_FLAG_CREATE,
            NULL,0,sPath)))
        {
            wsTemp = wstring(sPath).append(L"/").append(wsName);
        }
        else
        {
            return L"";
        }
    #else
        string home = string(getenv("HOME"));   <----(This line)
        wsTemp = String2WString(home);
        wsTemp.append(L"/").append(wsName);
    #endif

This is what I have so far.
EDIT:
I fixed it. The errors it gave me reminded me of the "It just crashes" topic, and I was able to fix if from there. Thanks a lot for the debug tip. Now I'll check what is the easiest way to get it all working and post a little guide, as promised.
07-22-2010 08:30 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Problems compiling in Windows - JKO - 07-22-2010, 07:50 AM
RE: Problems compiling in Windows - Urkle - 07-22-2010, 02:17 PM
RE: Problems compiling in Windows - JKO - 07-22-2010 08:30 PM



User(s) browsing this thread: 2 Guest(s)