Re: How do I turn off write combining programatically?

Tech-Archive recommends: Speed Up your PC by fixing your registry



We have seen this error when the graphics system is under load, it seems to
me to be a thread locking/sync issue within the GDI+ subsystem. We dont use
anything like CreateGraphics etc, just a single graphics object/handle on a
bitmap. The only thing we can do is catch the error and drop the paint
request and reissue the request which seems to work.

James

--
Create interactive diagrams and flowcharts with ERM Diagram at
http://www.crainiate.net

Take the ERM Tour at http://www.flowchartcontrol.com


"Garry Freemyer" <garryfre@xxxxxxxxxxxxxxxxxxx> wrote in message
news:edgVKRTcFHA.1384@xxxxxxxxxxxxxxxxxxxxxxx
> Using C# Visual Studio Net 2003, my screensaver comes up with this
> amityvillehorrorInvalidOperationException error "Object in use elsewhere",
> and I can't fix it!
>
> I read that a work around is to go to Display
> Properties/Settings/Advanced/Troubleshooting and change the settings there
> and it seems that "Write Combining" might be be the culprit. It caches
> writes to the screen and when the cache is full enough, it send the
> commands in one batch!
>
> This might be why I'm getting this error from h^ell. The error take
> anywhere from 20 seconds to 18 hours to show up. I can't catch it in a
> catch clause and I'm so sick of seeing it that I'm ready to erase my
> screensaver, and my posted sample in sheer disgust and destroy all source
> code!!!
>
> Puhleez!!! Is there a way to turn off this in my program so I don't have
> to go in and mess up the performance of every game I have just so I don't
> have to scream and shriek at this error? I don't ever want to see it
> again!
>
> I've seen it at least 80 times, and I'm sick of it!
>
> Sorry for the rant, its just that I've fed up with this issue 5 million
> times over!
>
> --
> To reply to this message take off the .NoJunkSpam off of the end of
> garryfre@xxxxxxxxxxxxxxxxxxxxxx
>


.



Relevant Pages

  • Re: How do I turn off write combining programatically?
    ... > We have seen this error when the graphics system is under load, ... > paint request and reissue the request which seems to work. ... >> screensaver, and my posted sample in sheer disgust and destroy all source ... >> I've seen it at least 80 times, and I'm sick of it! ...
    (microsoft.public.dotnet.framework.drawing)
  • How do I turn off write combining programatically?
    ... and I can't fix it! ... It caches ... and I'm so sick of seeing it that I'm ready to erase my screensaver, ... I've seen it at least 80 times, and I'm sick of it! ...
    (microsoft.public.dotnet.framework.drawing)