Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


It just crashes!
alfie Offline
Junior Member

Posts: 34
Threads: 3
Joined: May 2010
Reputation: 0
#1
It just crashes!

I got the project to compile, but it just crashes.
I debugged it and it crashes on

> Penumbra.exe!BuildLogFilename(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & asFilename="òÿ‹„ýÿÿÿ%¨‘i") Line 108 + 0x3b bytes C++


Which refers to

wstring BuildLogFilename ( const string& asFilename )
{
wstring wsName;
wstring wsTemp;
wsName = String2WString(asFilename);

in oal_loggerobject.cpp

it may be worth mentioning that the OAL_wrapper did not compile first time, I had to copy a load of files and set the includes to local.
05-23-2010, 09:11 PM
Find
nckomodo Offline
Junior Member

Posts: 18
Threads: 4
Joined: May 2010
Reputation: 0
#2
RE: It just crashes!

(05-23-2010, 09:11 PM)alfie Wrote: I got the project to compile, but it just crashes.
I debugged it and it crashes on

> Penumbra.exe!BuildLogFilename(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & asFilename="òÿ‹„ýÿÿÿ%¨‘i") Line 108 + 0x3b bytes C++


Which refers to

wstring BuildLogFilename ( const string& asFilename )
{
wstring wsName;
wstring wsTemp;
wsName = String2WString(asFilename);

in oal_loggerobject.cpp

it may be worth mentioning that the OAL_wrapper did not compile first time, I had to copy a load of files and set the includes to local.

try adding WIN32 to the preprocessor defines for OALWrapper (its the preprocessor selection under C/C++ in the properties page, atleast thats where it is in vs 2010) and see if that fixes it any.
05-23-2010, 09:19 PM
Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#3
RE: It just crashes!

(05-23-2010, 09:11 PM)alfie Wrote: I got the project to compile, but it just crashes.
I debugged it and it crashes on

> Penumbra.exe!BuildLogFilename(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & asFilename="òÿ‹„ýÿÿÿ%¨‘i") Line 108 + 0x3b bytes C++


Which refers to

wstring BuildLogFilename ( const string& asFilename )
{
wstring wsName;
wstring wsTemp;
wsName = String2WString(asFilename);

in oal_loggerobject.cpp

it may be worth mentioning that the OAL_wrapper did not compile first time, I had to copy a load of files and set the includes to local.

Copy all the source files and header files from OALWrapper into HPL1Engine, and compile it.

[Image: 16455.png]
05-24-2010, 12:40 AM
Find
ricky Offline
Junior Member

Posts: 3
Threads: 1
Joined: May 2010
Reputation: 0
#4
RE: It just crashes!

You shouldn't be copying includes anywhere!

HPL1Engine needs $(ProjectDir)..\OALWrapper\includes added to the include path and OALWrapper needs WIN32 added to the defines.
05-24-2010, 05:08 PM
Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#5
RE: It just crashes!

(05-24-2010, 05:08 PM)ricky Wrote: You shouldn't be copying includes anywhere!

HPL1Engine needs $(ProjectDir)..\OALWrapper\includes added to the include path and OALWrapper needs WIN32 added to the defines.

I included all header files and source files and removed the OALWrapper project completely...

[Image: 16455.png]
05-24-2010, 05:44 PM
Find
alfie Offline
Junior Member

Posts: 34
Threads: 3
Joined: May 2010
Reputation: 0
#6
RE: It just crashes!

Ok, it gets to loading, then crashes, but when I debug it says error couldn't load PointLight2D.
05-24-2010, 08:40 PM
Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#7
RE: It just crashes!

(05-24-2010, 08:40 PM)alfie Wrote: Ok, it gets to loading, then crashes, but when I debug it says error couldn't load PointLight2D.

Start the executable, then attach the debugger.

[Image: 16455.png]
05-24-2010, 08:46 PM
Find
alfie Offline
Junior Member

Posts: 34
Threads: 3
Joined: May 2010
Reputation: 0
#8
RE: It just crashes!

I can't, it goes fullscreen and wont let me view any other windows.
05-24-2010, 08:49 PM
Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#9
RE: It just crashes!

(05-24-2010, 08:49 PM)alfie Wrote: I can't, it goes fullscreen and wont let me view any other windows.

Display a messagebox in the entry function.

[Image: 16455.png]
05-24-2010, 09:06 PM
Find
alfie Offline
Junior Member

Posts: 34
Threads: 3
Joined: May 2010
Reputation: 0
#10
RE: It just crashes!

I believe it is on this line

cString::FloatStringToArray(&vRawData[0],pVecText->Value(),lSize * 3);

That the problem is

This is in the

static void LoadGeometryVec(TiXmlElement *apRootElem, tColladaGeometryVec *apColladaGeometryVec)
{

in MeshLoaderColladaLoader in HPL engine project.
OMG IT WORKS, THANKYOU RICKY26!!!!!
(This post was last modified: 05-24-2010, 11:53 PM by alfie.)
05-24-2010, 11:20 PM
Find




Users browsing this thread: 2 Guest(s)