home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 15956 < prev    next >
Encoding:
Text File  |  1992-11-09  |  2.3 KB  |  49 lines

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