home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 446 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: informatik.uni-tuebingen.de!not-for-mail
  2. From: "Reinhard Katzmann" <Suamor@student.uni-tuebingen.de>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Boopsi shared Lib again
  5. Date: Sun, 07 Jan 1996 20:56:07 -0500
  6. Organization: Technische Informatik, Uni Tuebingen
  7. Distribution: world
  8. Message-ID: <68245038@informatik.uni-tuebingen.de>
  9. Reply-To: "suamor" <suamor@student.uni-tuebingen.de>
  10. NNTP-Posting-Host: gw192.informatik.uni-tuebingen.de
  11. X-NewsReader: IntuiNews 1.3a (7.9.95)
  12.  
  13. Hi
  14.  
  15. I meanwhile managed to get it to run partly. The problem described
  16. has been solved, adding the following lines before OSVERSION check:
  17.  
  18. if (!bm) return NULL;
  19. if (!GfxBase) {
  20.   GfxBase = ( struct GfxBase * )OpenLibrary( "graphics.library", 37 );
  21.   if (!GfxBase) return NULL;
  22.   mygfx=TRUE; /* Boolean for closing library again later */
  23. }
  24.  
  25. It seems this function is called (only when I create a shared lib, link
  26. lib has worked fine here):
  27. - not by my program
  28. - before Gfx Library has been opened with bm=NULL :-(
  29.  
  30. So this was the reason for the Enforcer hits & crashes. I still don't
  31. understand why the function is called at startup (when the Class is
  32. created). But for now I have a workaround.
  33.  
  34. Now I have another problem: If I want to set a point in the draw area,
  35. normally a point is drawn and copied into my bitmap. But when I use
  36. the shared lib version the point is drawn and _afterwards_ the input
  37. device crashes :-(. I hope to find out why and most important where it
  38. happens exactly and let you know about it.
  39.  
  40. - Reinhard Katzmann
  41.  
  42. ---
  43. E-Mail: suamor@student.uni-tuebingen.de
  44.  
  45. One day I hope to finish my RPS Pertergrin
  46. Concept for Pertergin (yet in german) avalaible on Request
  47. Current Amiga-Project: GuideTool (GUI) V1.1BETA
  48.  
  49.