Exceptions occuring related to Graphics

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Christopher Secules (secules_at_pica.army.mil)
Date: 11/22/04


Date: Mon, 22 Nov 2004 17:30:18 -0500

I am writing an application that uses remoting and the GDI graphics class to
update a bitmap that is getting displayed on the Client (UI). The server
receives commands from a controller over the serial port, and when a
complete command comes in, it interprets it. Interpretation of these
commands might involve the GDI graphics class. For example, commands
include drawing a line, drawing a circle, and drawing text. The bitmap gets
updated after every action, and then the Client senses the change and upates
itself.

I believe I am running into a problem with drawing on the bitmap. Randomly,
I get 1 of 2 possible exceptions:

The object is currently in use elsewhere.

and

Object reference not set to an instance of an object.

Normally, I would be able to track down where it is originating. However,
the InnerException was not set and the Stacktrace didn't come up with
anything useful. I only thought is that commands are coming in over the
serial port too fast and things are getting tied up. Any suggestions to
either get to the bottom of this, or to fix it? I was considering a
Synclock around my command interpretation routine.

Thanks.



Relevant Pages

  • Re: Mortise and Tenon Machine?
    ... || I've been thinking seriously about CNC conversions for mini-mill ... If the drawing consists of toolpaths, ... C programs that output a file of part program commands. ... Morris Dovey ...
    (rec.woodworking)
  • Re: First Law of Intelligence and the Big Bang
    ... application of more intelligence than does a drawing of a stick man. ... start-stop commands. ... Stop-start commands as you describe them seem only applicable to ... If not random, then deliberate. ...
    (talk.origins)
  • Re: SETI / BOINC 5 -> How to make it work?
    ... - Displays workunit progress (without reading XML files so it will ... not interfere with the Boinc client software trying to write those ... - Provides some additional commands not available through ... for programmers to access services/information from the Boinc client ...
    (comp.os.os2.apps)
  • Re: FTP client. Error "bad address"
    ... Then client ask for a connection to this IP in port ... Open a socket with socketfunction ... that you use the same address in the PORT command as was used to connect ... Some FTP servers will reject PORT commands that contain ...
    (comp.unix.programmer)
  • tcp ip external code
    ... The communication between Client and Server application is based on request? ... Commands sent by Client application ...
    (comp.lang.labview)