Jump to content
  • Advertisement
Sign in to follow this  
Kjell Andersson

DirectX and Purify

This topic is 5175 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm running my game through IBM Rational PurifyPlus. I get alot of Uninitialized memory reads in the CD3DXCodec class (which belongs to DirectX). Does anyone else have experience running Rational Purify on DirectX (v8 interface)? Is this normal behaviour or have I missed to set anything before calling D3DXCreateTextureFromFile?
[W] UMR: Uninitialized memory read in CD3DXCodec::CD3DXCodec(D3DX_BLT *,UINT,DWORD) {1 occurrence}
        Reading 4 bytes from 0x0013e5dc (4 bytes at 0x0013e5dc uninitialized)
        Address 0x0013e5dc points into a thread's stack 
        Address 0x0013e5dc is 40 bytes below the frame pointer in D3DXLoadSurfaceFromMemory
        Thread ID: 0xe3c
        Error location
            CD3DXCodec::CD3DXCodec(D3DX_BLT *,UINT,DWORD) [RememberGame.exe]
            CD3DXCodec_X8R8G8B8::CD3DXCodec_X8R8G8B8(D3DX_BLT *) [RememberGame.exe]
            CD3DXCodec::Create(D3DX_BLT *) [RememberGame.exe]
            CD3DXBlt::Blt(D3DX_BLT *,D3DX_BLT *,DWORD) [RememberGame.exe]
            D3DXLoadSurfaceFromMemory [RememberGame.exe]
            D3DXLoadVolumeFromResourceW [RememberGame.exe]
            D3DXCreateTextureFromFileInMemoryEx [RememberGame.exe]
            D3DXCreateTextureFromFileExA [RememberGame.exe]
            D3DXCreateTextureFromFileA [RememberGame.exe]
            Texture::Create(GraphicsSystem *,char const*) [texture.cpp:38]
                    // Load the texture
                    char pathName[100];
                    sprintf(pathName, "Data/Textures/%s", name);
             =>     if (FAILED(D3DXCreateTextureFromFile(m_gfxSystem->GetDevice(), pathName, &m_pD3DTexture))) {
                        ERROR1("Could not create texture '%s'", pathName);
                        return false;

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!