Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: gildea@expo.lcs.mit.EDU (Stephen Gildea) Newsgroups: comp.windows.x Subject: Re: Help needed on Athena Widgets Message-ID: <9103081907.AA12929@alex.lcs.mit.edu> Date: 8 Mar 91 19:07:14 GMT References: <1991Mar7.220840.29388@evax.arl.utexas.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: MIT X Consortium Lines: 13 I can set my XENVIRONMENT to my resource file in my shell, but when I try to do that in my program by using the putenv(string) command, it gives me a segmentation fault. Perhaps you are calling putenv with an automatic variable? The string you pass to putenv must stay around forever. Well, not quite forever; check the Sun man page for details. < Stephen MIT X Consortium