Neuz crash with adding 4th player slot @wndSelectChar

12/18/2015 14:19 raventh1984#1
Hi elitepvpers,

I have started all over with an different source. (Clean V15 with added v16 etc content VS2013)

Now i am adding the option so that you can create / select 4 characters instead of 3.

I have changed all things inside WndSelectChar.cpp .h to setup the 4th slot also changed resdata.

Now when i am logging in its crashing so i did an debug and the crash is leading me to this line

__fastfail(FAST_FAIL_STACK_COOKIE_CHECK_FAILURE);

insde gs_report.c

When i set the MAX_CHARACTER_SLOT on 3 so i can check if the resdata is correct its crashing on this line

m_pBipedMesh[i]->InitDeviceObjects(m_pApp->m_pd3dDevice);

Function HRESULT CWndSelectChar::InitDeviceObjects()

I am an bit lost.

Any help would be appriciated.
12/18/2015 15:03 alfredico#2
Check the i value to know in which character is crashing.
12/18/2015 19:13 Rhyder`#3
check the following:

m_dwMotion[??]
m_pBipedMesh[??]
make sure it was 4 registered value which is 0,1,2,3

MAX_CHARACTER_LIST must be 4 because it was "<" so when you set into 3 it reads 0,1,2 only
12/18/2015 19:13 raventh1984#4
Problem solved.
Re-coded the entire WndSelectChar.cpp

And the error was here

pWndStaticChar[4] = (CWndStatic*)GetDlgItem(WIDC_ST_CHARNAME04);

Above it was
CWndStatic* pWndStaticChar[4];

So i thought well i didnt have to change that cause the latest is 4

I changed it to 5 and the problem was gone.

To bad the error was pointing it to somewhat different. But at least now i know what it means to have an stack cookie instrumentation code means.

Quote:
Originally Posted by jayjei14 View Post
check the following:

m_dwMotion[??]
m_pBipedMesh[??]
make sure it was 4 registered value which is 0,1,2,3

MAX_CHARACTER_LIST must be 4 because it was "<" so when you set into 3 it reads 0,1,2 only
Those where already changed.
12/18/2015 19:24 alfredico#5
To avoid this errors I would recommend you to change the player slots number for a macro.