home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!mcsun!dxcern!riipinen
- From: riipinen@dxcern.cern.ch (Petri Juhani Riipinen)
- Subject: Borlanc C++ & BGI-graphics.
- Message-ID: <1992Nov9.075723.16304@dxcern.cern.ch>
- Sender: riipinen@dxcern.cern.ch (Petri J. Riipinen)
- Organization: CERN European Laboratory for Particle Physics
- Date: Mon, 9 Nov 1992 07:57:23 GMT
- Lines: 38
-
- Hello.
-
- I have (once again...:) a little problem with Borland C++ 3.0. And this time
- it very much seems to be a bug in the Borland BGI-graphics library, at least
- I can't find anything wrong in my program.
-
- My program is a logic simulator, where you can put gates (and, or, etc...)
- on the screen and then connect them with wires and see them working. Well,
- it is all done beatifully with objects, of course. And I have the
- communication with mouse and the objects with event-system. I did the mouse
- system little stupidly, I hooked the after-the-timer (Hmm...0x1C ?)
- interrupt and use it to poll the mouse. Now, I know, that it should be
- preferably with the automatic mouse interrupts, but I could not get my mouse
- interrupts working...:( The program always crashed, when I tried the
- automatic mouse handler. This works with the mouse.
-
- For example, when I move one gate, the mouse handler sends a message to that
- gate, that it should now move, and it moves. The gate sends messages to all
- wires connected to it, that they should also adjust themselves. Nice and
- clean...:) Well, after a random time, the lines don't move anymore...:(
- And I can't even debug the program, as the whole system crashes, if there is
- a breakpoint, while the interrupts are hooked...:( So, I've done little
- sound debugging, ie. made some beeps in strategic points in the program,
- so that I hear, if the program even executes that code. Well, it does and
- it seems, that it calls line(x1,y1,x2,y2) with perfectly legal values.
-
- So, everything else works fine, except the lines wont draw...:( And the
- top of rectangles doesn't draw either...
-
- Anybody ever have a similar problem and how did you solve it...?
-
- Greetings,
- - PJR -
- --
- ------------------------------------------------------------------------------
- Petri J. Riipinen (riipinen@dxcern.cern.ch)
- Les terrases de Thoiry n.15 (riipin@vxldb1.cern.ch)
- 01710 Thoiry, France (riipin_dev@vxldb2.cern.ch)
-