Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: niebres@mct-1.UUCP (Caroline Niebres) Newsgroups: comp.windows.x Subject: (none) Message-ID: <9103262308.AA07236@mct-1.com> Date: 26 Mar 91 23:08:32 GMT Sender: tytso@athena.mit.edu (Theodore Y. Ts'o) Organization: The Internet Lines: 27 Subject: Modular code. Hi All! This may sound stupid, but I have know idea what to do. I broke up my program into smaller modules. The compilation and link gave no errors. But when I tried to run it, the program got a bus error. Running gdb the stack trace points to gettimeofday which seems to be called by _XtwaitForSomething. The code has not changed except that some of my variables are now regular globals and not static. (This includes some widgets). What am I doing wrong? Caroline P.S. I am using 11R3, Motif 1.0, Interactive UNIX v2.02. I mainly using Intrinsic calls. &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& ! Caroline Niebres Software Engineer ! ! Micro Component Technology, Inc. St. Paul, MN ! ! (612) 482 - 6335 uunet!mct-1!niebres ! &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&