Windows crashes when I use dynamic textures with D3DLOCK_DISCARD f



I've wrote simple test using DirectX 8.1 headers to test how dynamic textures
works. I've created windowed application, 512x512 one D3DFMT_A8R8G8B8
D3DPOOL_DEFAULT and D3DUSAGE_DYNAMIC texture.

Cycle for 100 times, and LockRect/UnLockRect
(I didn't used timer, only FOR cycle).

As SDK says I need to use D3DLOCK_DISCARD flag in LockRect.
And then I added this flag and started my test, my Windows XP SP2 falled to
BSOD with restarting and even damaging of some files of the project.

This test also freezed another PC with Windows 2000.

So if I correctly wrote my test, I assume that WE SHOULD NOT use
D3DLOCK_DISCARD flag for stability reasons. By the way, as SDK says this
option means DMA access to texture.
.



Relevant Pages

  • RE: Getting 0x8009000b Error for CryptExportKey
    ... The 0x8009000b error code is actually ... NTE_BAD_KEY_STATE constant value in SDK, which means "You do not have ... permission to export the key. ... CRYPT_EXPORTABLE flag was not specified.". ...
    (microsoft.public.platformsdk.security)
  • Re: EXIT PERFORM Help, please
    ... Thank you Richard for a succinct and easily assimilable response. ... I wasn't aware of EXIT PERFORM CYCLE but your response clearly addresses my ... > There is no need to use a 'finish flag' if you use EXIT PERFORM. ...
    (comp.lang.cobol)
  • Re: EXIT PERFORM Help, please
    ... "Pete Dashwood" wrote ... > the current cycle? ... In Fujitsu there are: ... There is no need to use a 'finish flag' if you use EXIT PERFORM. ...
    (comp.lang.cobol)
  • Re: DirectSound Samples
    ... > More specifically add the flag DSBCAPS_GLOBALFOCUS when creating the sound ... > buffer. ... > This is explained under DSBUFFERDESC in the SDK Docs. ...
    (microsoft.public.win32.programmer.directx.audio)

Loading