The debug built works fine if run manually. No prob with that one either. Only with the release.
Code:
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch(message)
{
case WM_CREATE:
ProgStart(hWnd);
_pGame->Clean(hWnd);
break;
}
}
ProgStart(hWnd); Contains the following code void Sudoku::Start(HWND hWnd) where does the issue show up.
If it helps the actual point where the prog stops is in the highlighted line.
Code:
void Sudoku::Start(HWND hWnd)
{
// All rects needed to be disabled after start
for(int i = 0; i <= m_iRowCount; i++)
{
for(int j = 0; j <= m_iColCount; j++)
{
m_bOwner[i][j] = true;
m_bActive[i][j] = false;
m_bSolver[i][j] = false;
bHighLightOwner = false;
bHighLightSolver = false;
bHighLightBase = false;
m_iValue[i][j] = -1;
m_iCorrect[i][j] = -1;
for(int k = 0; k <= 8; k++)
{
m_iPossible[i][j][k] = k + 1; // At this point an unhandeled exception always occurs
}
iProgressBar++;
m_bActive[i][j] = false;
}
}
}
All needed variables are declared so I dont believe there is a problem with invalid pointers.