DirectX Question????
-
-
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???
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
-
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???
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