The object is currently in use elsewhere


D

David K

we are receiving the error ( details in the end of the email) on of our
workstations
The error appear when using multiple .NET applications.
the problem does not happen on other workstations that use the same
applications.
to exclude the option that it is something in the application - I tested it
with the Framework SDK samples ( DataGrid and datetimePicker) and it is
repeated.
my guess is that something is corrupted in the .NET framework installed, we
uninstalled Framework 1.1 and reinstalled it but no luck.
The enviroment is:
Win 2K Prof
SP4
Framework 1.1

any idea ?
David


Error details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: The object is currently in use elsewhere.
at System.Drawing.Graphics.Dispose(Boolean disposing)
at System.Drawing.Graphics.Dispose()
at System.Windows.Forms.PaintEventArgs.Dispose(Boolean disposing)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.GroupBox.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
DateTimePickerCtl
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase:
file://dudi/samples/controlreference/datetimepickerctl/vb/DateTimePickerCtl.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.
 
Ad

Advertisements

F

Fergus Cooney

Hi David,

I was working with a routine that captures the image dispayed by a
Control. This used the Graphics of the Control and played with Bitmaps, blah,
blah.

Most of the time it was ok, but sometimes, when I came to dispose of the
Graphics, I got the error that you were talking about. I imagine that
somewhere in your code there's a dispose trying to disown something that it
shouldn't, or simlar.

I can't help with the solution though. I had to chang how I used my
routine.

Regards,
Fergus
 
T

Tian Min Huang

Hello David,

Thanks for your post. Based on my experience, there is a known issue in an
early verion of ATI graphic driver, say (ATI 16MB RAGE 128 Pro driver) that
will cause such error.

If you are using ATI graphic card, please upgrade to latet ATI driver at:
http://www.ati.com/support/driver.html

You can also lower the hardware acceleration for the graphics hardware to
work around this problem. The hardware acceleration can be found under,
"Display Properties" (right click on the desktop and click properties) ->
"Settings" -> "Advanced" button -> "Troubleshooting" tab.

I look forward to your result.

Have a nice day! :)

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Ad

Advertisements

D

David K

yes,
we do have an ATI 16MB Rage 128 Pro graphic card
I updated the driver to the latest DELL ( this is a dell box) driver
so far it looks good
I'll post back if the issue returns

Thanks
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top