Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DEBUG_NEW and DirectX

DEBUG_NEW and DirectX

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsgame-devdata-structuresdebugginghelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bruccutler
    wrote on last edited by
    #1

    We are using the February 2006 version of DirectX. When we insert the following line: #define new DEBUG_NEW we get the following errors from the Directx Modules: c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.h(392) : error C2059: syntax error : 'string' c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.h(392) : error C2091: function returns function c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.h(392) : error C2802: static member 'operator new' has no formal parameters c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.h(393) : error C2059: syntax error : 'string' c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.h(393) : error C2090: function returns array c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.inl(987 ) : error C2761: 'void *(__cdecl *_D3DXMATRIXA16::operator new(void))(size_t)' : member function redeclaration not allowed c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.inl(987 ) : fatal error C1903: unable to recover from previous error(s); stopping compil ation How can we take advantage of the DEBUG_NEW capability and also get around these errors? BRC

    M 1 Reply Last reply
    0
    • B bruccutler

      We are using the February 2006 version of DirectX. When we insert the following line: #define new DEBUG_NEW we get the following errors from the Directx Modules: c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.h(392) : error C2059: syntax error : 'string' c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.h(392) : error C2091: function returns function c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.h(392) : error C2802: static member 'operator new' has no formal parameters c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.h(393) : error C2059: syntax error : 'string' c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.h(393) : error C2090: function returns array c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.inl(987 ) : error C2761: 'void *(__cdecl *_D3DXMATRIXA16::operator new(void))(size_t)' : member function redeclaration not allowed c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.inl(987 ) : fatal error C1903: unable to recover from previous error(s); stopping compil ation How can we take advantage of the DEBUG_NEW capability and also get around these errors? BRC

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      Defining DEBUG_NEW after any included header files has always worked for me. Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      B 1 Reply Last reply
      0
      • M Mark Salsbery

        Defining DEBUG_NEW after any included header files has always worked for me. Mark

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        B Offline
        B Offline
        bruccutler
        wrote on last edited by
        #3

        Ok - I'll try that. We wanted to define the DEBUG_NEW option in a general header file, but we will include it later on.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups