home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / intervie / 3481 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.6 KB  |  49 lines

  1. Newsgroups: comp.windows.interviews
  2. Path: sparky!uunet!gatech!darwin.sura.net!jvnc.net!nj.nec.com!max
  3. From: max@ccrl.nj.nec.com (Maximilian Ott)
  4. Subject: Re: Problems with Raster::poke on sun sparc (Clarification)
  5. Message-ID: <1992Dec30.225033.28047@research.nj.nec.com>
  6. Sender: news@research.nj.nec.com
  7. Organization: C&C Research Labs, NEC USA, Princeton, N.J.
  8. References: <1992Dec29.210927.23562@research.nj.nec.com>
  9. Date: Wed, 30 Dec 92 22:50:33 GMT
  10. Lines: 37
  11.  
  12. In article <1992Dec29.210927.23562@research.nj.nec.com> max@ccrl.nj.nec.com (Maximilian Ott) writes:
  13. >....For reasons
  14. >beyond my understanding dbx crashes with 
  15.  
  16. Ok, I got that solved (dbxtool picked up the wrong dbx)
  17.  
  18. >As a crude debugging hack I put a printf as first statement into
  19. >(xraster.c)Raster::poke 
  20.  
  21. This was very optimistic and shows that I pretty much don't know what
  22. I'm doing :)
  23.  
  24. >..
  25. >.... write col: 205 of: 256
  26. >...... Raster::poke
  27. >...... poked!
  28. >.... write col: 206 of: 256
  29. >Segmentation fault (core dumped)
  30.  
  31. I still get the same problem but now I compiled xraster.c with -g and
  32. single stepped it. It turns out that the 205@0 call corrupts r->image_
  33. when calling XPutPixel. I looked at the definition of XPutPixel and
  34. have really no idea what this is doing. I tried a hack where I saved
  35. and restored r->image_ between calls to XPutPixel but, of course, this
  36. only delays the crash.
  37.  
  38. The funny thing is that when using the saber debugger it works. 
  39.  
  40. Still clueless,
  41.  
  42. max
  43.  
  44.  
  45.  
  46. -- 
  47. Max Ott                 max@ccrl.nj.nec.com         phone: (609)951-2469
  48. NEC C&C Research        Princeton, NJ, 08540        fax:   (609)951-2499
  49.