Sign in to follow this  

DirectX and Purify

This topic is 4836 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

This topic is 4836 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this