Wierd Segmentation Faults on Global Variable
Hello
I'm creating a little x-windows e-mail util.
I have my widget defined globally (ie above all code)
When I login to the servers from home on my machine my program works fine, but when I try it in computer at the lab, I get segmentation faults as soon as a try and use the global variable(s). I'll post some code for example purposes
************************************************** ***********************
Widget toplevel = NULL; (or Widget toplevel;)
main(argc, argv)
char *argv[];
{
toplevel = XtVaAppInitialize(&app, "Demos", NULL, 0, &argc, argv, NULL,
I get a seg fault as soon as that last line runs. Theres a lot more code but that's the meaty part that screws up.
Any ideas . . I think it might have to do with defining them in a header file. HELP!?!
Carmen