Jump to content

the error of starting


Recommended Posts

The crash

Unhandled exception at 0x00C94273 (pyrogenesis.exe) in crashlog.dmp: 0xC0000005: Access violation reading location 0x00000410.
void CFont::CalculateStringSize(const wchar_t* string, int& width, int& height) const
	width = 0;
->	height = m_Height; // height = 21104592

	for (const wchar_t* c = string; *c != '\0'; c++)
		const GlyphData* g = m_Glyphs.get(*c);

		if (!g)
			g = m_Glyphs.get(0xFFFD); // Use the missing glyph symbol

		if (g)
			width += g->xadvance; // Add the character's advance distance


>	pyrogenesis.exe!CFont::CalculateStringSize(const wchar_t * string, int & width, int & height) Line 64	C++
 	[Inline Frame] pyrogenesis.exe!CTextRenderer::PutAdvance(const wchar_t *) Line 120	C++
 	pyrogenesis.exe!CTextRenderer::PrintfAdvance(const wchar_t * fmt, ...) Line 96	C++
 	pyrogenesis.exe!CLogger::Render() Line 249	C++
 	pyrogenesis.exe!Render() Line 284	C++
 	pyrogenesis.exe!Frame() Line 445	C++
 	pyrogenesis.exe!RunGameOrAtlas(int argc, const char * * argv) Line 685	C++
 	pyrogenesis.exe!SDL_main(int argc, char * * argv) Line 737	C++
 	pyrogenesis.exe!main_getcmdline() Line 74	C
 	[Inline Frame] pyrogenesis.exe!invoke_main() Line 90	C++
 	pyrogenesis.exe!__scrt_common_main_seh() Line 288	C++
 	pyrogenesis.exe!CallStartupWithinTryBlock() Line 365	C++
 	kernel32.dll!75d16739()	Unknown
 	kernel32.dll![Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]	Unknown
 	ntdll.dll!77cf8aff()	Unknown
 	ntdll.dll!77cf8acd()	Unknown

Pinging @vladislavbelov in case he has an idea.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...