Results 1 to 2 of 2
  1. #1
    jhonydeep001's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    Post Error Run-Time Check Failure #2 - Stack around the variable 'dwvTable' was corrupted

    Code:
    VOID CreateDevice(DWORD *dwVTable)
    {
    	LPDIRECT3D9 pD3d9;
    	LPDIRECT3DDEVICE9 pD3DDevice;
    	pD3d9 = Direct3DCreate9(D3D_SDK_VERSION);
    	if(pD3d9 == NULL)
    		return;
    	D3DPRESENT_PARAMETERS pPresentParms;
    	ZeroMemory(&pPresentParms, sizeof(pPresentParms));
    	pPresentParms.Windowed = TRUE;
    	pPresentParms.BackBufferFormat = D3DFMT_UNKNOWN;
    	pPresentParms.SwapEffect = D3DSWAPEFFECT_DISCARD;
    	if(FAILED(pD3d9->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, GetDesktopWindow(), D3DCREATE_SOFTWARE_VERTEXPROCESSING, &pPresentParms, &pD3DDevice)))
    		return;
    	DWORD * dwTable = ( DWORD* )pD3DDevice;
    	dwTable = ( DWORD* ) dwTable[0];
    	dwVTable[0] = dwTable[16];
    	dwVTable[1] = dwTable[17];
    	dwVTable[2] = dwTable[82];
    }
    Acredito que o problema estaja ai, mas eu olho e re-olho e nao encontro nada de errado, alguem poderia me ajudar ?

  2. #2
    kssiobr's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    Nos braços do Pai Celestial...
    Posts
    726
    Reputation
    10
    Thanks
    333
    My Mood
    Cheeky
    O erro pode ser no ato do uso dessa função, de mais detalhes, post onde você está usando a mesma!

Similar Threads

  1. [Solved] Running time error help,and i did install c++, help
    By phillyfunguy in forum CrossFire Help
    Replies: 4
    Last Post: 01-18-2012, 12:12 AM
  2. [Solved] Run-time error'424': Object Required
    By -ToKeN. in forum CrossFire Help
    Replies: 10
    Last Post: 11-10-2011, 09:22 AM
  3. [Help Request] AVA crash with no error (random times, no hacks running)
    By Ronon666 in forum Alliance of Valiant Arms (AVA) Help
    Replies: 7
    Last Post: 05-04-2011, 11:56 AM
  4. Run time error
    By kamikaz in forum WarRock - International Hacks
    Replies: 2
    Last Post: 05-12-2009, 02:52 PM