Opera
Deity
- Joined
- Sep 21, 2008
- Messages
- 4,643
I was skimming through the pedia after some modding and I got a RuntimeError: unidentified C++ exception in CvPediaMain; in placeCorporations, line:
Using a debug dll, I got that:
What could that error be?
Code:
screen.setTableText(tableName, iColumn, iRow, u"<font=3>" + item[0] + u"</font>", gc.getCorporationInfo(item[1]).getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_CORPORATION, item[1], 1, CvUtil.FONT_LEFT_JUSTIFY)
Then I figured it was because of a check involving CvCorporation::getCrime(), so I commented out the check... And then the error was back at the below check. Using breakpoints, I managed to find that it breaks right when the function returns, in this case, m_iDefenseModifier.First-chance exception at 0x00682787 in Civ4BeyondSword.exe: 0xC0000005: Access violation reading location 0xd56a822a.
First-chance exception at 0x7c350440 in Civ4BeyondSword.exe: 0xC0000005: Access violation reading location 0x00000019.
First-chance exception at 0x7c350440 in Civ4BeyondSword.exe: 0xC0000005: Access violation reading location 0x00000019.
First-chance exception at 0x7c350440 in Civ4BeyondSword.exe: 0xC0000005: Access violation reading location 0x00000019.
First-chance exception at 0x00682787 in Civ4BeyondSword.exe: 0xC0000005: Access violation reading location 0xd56a822a.
What could that error be?