Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

ASP.NET WaveformGraph Graphics.FromImage Exception

I have a Windows server 2003 using ASP.NET 2.0 with C# and Measurement Studio 8.0.20.334.

I have:
one WaveFormGraph on a page
1 client PC
1 server PC
5 instances of IE on the same web page

during a DHTML timer postback, I am receiving a .Net Exception InvalidOperationException.
The internal message is: Object is currently in use elsewhere

the call stack ends with:

at System.Drawing.Graphics.FromImage(Image image)
at NationalInstruments.UI.WebForms.Internal.a.i()
at NationalInstruments.Restricted.ControlBaseManager.b()

In looking at information on MSDN, the Graphics.FromImage method should be thread safe because it is a static method.
I have IIS 6 configured with two worker processes (w3wp.exe).

Any thoughts?

Michael



0 Kudos
Message 1 of 2
(3,691 Views)
Hi Michael,

I don't have any thoughts initially.  Would you be able to post a small example which reproduces the behavior?  It may be helpful for me to troubleshoot on my end as well.  Thanks!
Matt S
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(3,656 Views)