Re: Getting my device back.

From: Eyal Teler (et_at_nospam-et3d.com)
Date: 10/06/04


Date: Wed, 06 Oct 2004 02:23:53 +0200

May be that you're forgetting to set some render states, matrices,
etc. These are lost when the device is lost.

        Eyal

L. Spiro wrote:
> Using DirectX® 9.0c, Microsoft® Visual C++ .NET.
>
> When I lose my device and try to get it back, I unload all models, textures,
> and lines, restore the device, and then get everything back.
> This works as far as getting my objects reloaded, textures back in place, etc.
> The screen comes back to full-mode and seems to start drawing normally
> again, except there are no 3-D objects anymore.
>
> My menus show fine, since they are 2-D, even though they have 4 vertices for
> the backdrop/filling.
>
> But no models will display anymore.
> It is not a problem with unloading and reloading the model—this same exact
> operation is done many times during runtime before minimizing and it works
> fine.
> And after maximizing again, the models report themselves as loading fine.
>
>
> It IS possible that the models are not loading correctly and I will continue
> looking into this problem on my own, but since it has to be run in
> full-screen for the device to get lost, I can not use the debugger to track
> this problem.
>
>
> And there is the other thing; the real reason I am posting.
> The other problem is that the window takes the full screen, and acts as a
> full-screen window, and all is normal in that respect, until you bring the
> mouse to the edge of the screen and drag. The window can be resized after
> the device has been restored. Dragging the edge of the window causes
> jitteriness while you are dragging, but when you release the mouse the window
> goes back to its normal full-screen size. After that, clicking on the areas
> where the window was dragged off will cause events to happen in the
> background.
>
>
>
> This problem only just recently happened, and my models only just stopped
> loading after restoring the device. Are these problems related?
> What could be causing the dragging problem?
> I will continue searching for the answer to the first problem on my own but
> I wanted to post these together in case they are somehow related. They
> showed up at the same time.
>
>
> L. Spiro



Relevant Pages

  • Re: is EVENT_BUFFER_SIZEs default too small? [LONG]
    ... > more events than Tk can handle, the oldest events are lost. ... > press and also a window raise event. ... > set mainframe ... > pack $b -side top ...
    (comp.lang.tcl)
  • Re: Copy of files gone wild
    ... Dragging is not the problem per se, it's dragging without meaning to while ... What happens is that you have multiple items selected and you're using the ... You either have to practice or set the drag sensitivity differently. ... The "Activation follows mouse" checkbox enables X-Mouse style window ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Copy of files gone wild
    ... Dragging is not the problem per se, it's dragging without meaning to while ... You either have to practice or set the drag sensitivity differently. ... right-click the test icon. ... The "Activation follows mouse" checkbox enables X-Mouse style window ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: resizing problem
    ... In fact if the 'show window contents while dragging' is turned off then the resize event will definitely be fired only once, when the user releases the mouse button on completion of the drag. ...
    (microsoft.public.vb.general.discussion)
  • Re: Cosmetic Slidey redraw bug
    ... I see the redraw problem. ... Uncheck "Show window contents while dragging". ... mouse over the pin when it happens, and the display will refresh correctly. ...
    (comp.lang.smalltalk.dolphin)