baso88 / SC_AngelScript

Sven Co-op AngelScript documentation, tutorials, sample code and tools
41 stars 4 forks source link

ASDocGenerator crashes (64bit) #78

Closed wootguy closed 5 years ago

wootguy commented 5 years ago

Compiled with VS 2017, VS 2019, old and current sources, all of them crash when parsing the asdocs.txt generated by the game. I noticed the included VS project is for VS 2015, but compiling with the v140 toolset made no difference.

Also, I also had to add #include <string> in CDocGenerator.h get the tool to compile. I'm on Windows 10, 64bit.

Call stack for the current sources:

ASDocGenerator.exe!strcpy() Line 153    Unknown
ASDocGenerator.exe!CString::Assign(const char * pszString, const unsigned __int64 iLength) Line 268 C++
ASDocGenerator.exe!CString::operator=(const CString & other) Line 301   C++
ASDocGenerator.exe!CString::CString(const CString & other) Line 162 C++
ASDocGenerator.exe!keyvalues::CBaseKeyvaluesParser::ParseNext(keyvalues::CKeyvalueNode * & pNode, bool fParseFirst) Line 101    C++
ASDocGenerator.exe!keyvalues::CBaseKeyvaluesParser::ParseBlock(keyvalues::CKeyvalueBlock * & pBlock, bool fIsRoot) Line 200 C++
ASDocGenerator.exe!keyvalues::CKeyvaluesParser::Parse() Line 292    C++
ASDocGenerator.exe!CDocGenerator::GenerateFromFile(const char * const pszInputFilename, const char * const pszOutputDirectory) Line 48  C++
ASDocGenerator.exe!main(int iArgc, char * * pszArgv) Line 137   C++

asdocs.txt

wootguy commented 5 years ago

Got it working. I was compiling for 64 bit. It stopped crashing after switching the platform to x86.