sbuck@GATEWAY.MITRE.ORG (Steve Buck) (08/01/89)
I'm trying to create an array of windows with the following declaration: Window boxes [50]; boxes [index] = XCreateSimpleWindow (display, displaywin, (int)(x_center - (box_width / 2)), (int)(y_center - (box_width / 2)), (int)box_width, (int)box_height, 0, WhitePixel (display, displaywin), BlackPixel(display, displaywin)); XDefineCursor (display, boxes [index], XC_left_ptr); XSelectInput (display, boxes [index], ButtonPressMask); XMapWindow (display, boxes [index]); When I run my program, I get a "Bus error (core dumped) at the line which contains XCreateSimpleWindow. Is it possible to use an array position in the call to XCreateSimpleWindow? Any help would be appreciated. Thanks in advance, -- -- Steve Buck The MITRE Corporation, Networking Center McLean, Virginia phone: (703) 883-5574 email: sbuck@gateway.mitre.org