home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / alt / lucidem / help / 434 < prev    next >
Encoding:
Text File  |  1992-09-15  |  1.8 KB  |  58 lines

  1. x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Tue, 15 Sep 1992 11:27:54 EDT
  2. From: bobhays@spss.com
  3. Message-ID: <9209151527.AA17314@ibmws001.spss.com>
  4. Subject: Update on my continuing struggle with lucid on AIX
  5. Date: Tue, 15 Sep 1992 10:27:53 CDT
  6. X-Mailer: ELM [version 2.3 PL11]
  7. Newsgroups: alt.lucid-emacs.help
  8. Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
  9. Sender: help-lucid-emacs-request@lucid.com
  10. Lines: 46
  11.  
  12. I suppose hacking is allowed here :-) ....
  13.  
  14. This change allowed me to get lucid to start up and actually do some
  15. things.
  16.  
  17. > diff menubar.c menubar.c~
  18. 146c146
  19. <   if ( wv && wv != 0xDEADBEEF)
  20. ---
  21. >   if ( wv )
  22. 150c150
  23. <     if (wv->key && wv->key != 0xDEADBEEF) free (wv->key);
  24. ---
  25. >     if (wv->key) free (wv->key);
  26. 161,174c161,162
  27. <     if (a && a != 0xDEADBEEF)
  28. <     {
  29. <         if ( a->key && a->key != 0xDEADBEEF )
  30. <         {
  31. <             free ( a->key );
  32. <         }
  33. <     }
  34. <     if (b && b != 0xDEADBEEF)
  35. <     {
  36. <         if ( b->key && b->key != 0xDEADBEEF )
  37. <         {
  38. <             free ( b->key );
  39. <         }
  40. <     }
  41. ---
  42. >     if (a) free_widget_value (a);
  43. >     if (b) free_widget_value (b);
  44.  
  45. Note that I took the recursive call to free_widget_value out - if you
  46. do not, you end up segment violating in the free call because a
  47. pointer has a non-null value but is not pointing to allocated memory.
  48. Anyway, this allowed me to get further.  Now, I can lock it up if I do
  49. just the right things, and I can still get it to core dump (I think -
  50. the above fix might have changed that behavior now that I think about
  51. it:-), but I can get it to load, open files, etc.
  52.  
  53. That's all I can do today (/usr/group/chicago meeting tonight - our
  54. local UniForum users group, of which I'm an active [read volunteer
  55. dish wiper] member].
  56.  
  57. Have fun! - Bob
  58.