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#
  4. DirectX Question????

DirectX Question????

Scheduled Pinned Locked Moved C#
questiongraphicsgame-devhelptutorial
3 Posts 3 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.
  • S Offline
    S Offline
    SherKar
    wrote on last edited by
    #1

    hi all i have an app built with directx 9.0 and have mesh in it and i want to get out of using for example Alt+tab to go to another app and the get back to the directx app it tells me there is error called the sample does not exist wt can i do???

    D H 2 Replies Last reply
    0
    • S SherKar

      hi all i have an app built with directx 9.0 and have mesh in it and i want to get out of using for example Alt+tab to go to another app and the get back to the directx app it tells me there is error called the sample does not exist wt can i do???

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      SherKar wrote: ...i want to get out of using for example Alt+tab to go to another app and the get back to the directx app it tells me there is error called the sample does not exist ... A little clearer please... Are you saying that when you Alt-Tab to another app and then Alt-Tab back to your app, you get an error saying "The sample does not exist."? That isn't an error in any Microsoft documentation so I don't know where it is coming from. If it is a custom error being generated by your code, you'd have to go through your code to find out where it is coming from, because as of right now, there isn't enough information to determine what piece of code is causing the error. RageInTheMachine9532

      1 Reply Last reply
      0
      • S SherKar

        hi all i have an app built with directx 9.0 and have mesh in it and i want to get out of using for example Alt+tab to go to another app and the get back to the directx app it tells me there is error called the sample does not exist wt can i do???

        H Offline
        H Offline
        Heath Stewart
        wrote on last edited by
        #3

        The first thing that comes to mind is that you aren't loading your mesh with the painting procedures. If you're storing this in a buffer, you should also handle the Created event and re-load your mesh in the handler. This event is fired when the buffer is destroyed and re-created, which happens when the app must be repainted. Other than that, debug your code and catch all exception like Dave was getting at to see where the problem actually happens.

        Microsoft MVP, Visual C# My Articles

        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