[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
Moderator: | STAR::VATNE |
|
Created: | Mon Oct 30 1989 |
Last Modified: | Mon Dec 31 1990 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3726 |
Total number of notes: | 19516 |
1706.0. "XGetImage - BadMatch" by MARX::FLEMING (AFE - Acronyms For Everything) Thu Nov 09 1989 09:57
<Also posted in DECWINDOWS_PROGRAMMING>
The following code gives me a BadMatch error when I try
to do the XGetImage. The window is InputOutput and the other
reasons for this error don't seem to apply to what I'm doing. Which
is: 1) create a window 2) manage it 3) XGetImage on the window.
Ideas?
Code fragment...
.
.
toplevel = XtInitialize(
"test",
"message",
NULL, 0,
&argc, argv);
main_window = DwtMainWindow(toplevel, "test", 0, 0, 900, 575);
display_window = DwtWindow (main_window, "test", 0, 0, 900, 575, NULL);
argcount = 0;
SetArg(DwtNexposeCallback, expose_cb);
XtSetValues(display_window, arglist, argcount);
XtManageChild (main_window);
XtManageChild (display_window);
XtRealizeWidget (toplevel);
dpy = XtDisplay(toplevel);
screen = DefaultScreen (dpy);
format = (DisplayPlanes (dpy ,screen) > 1 ? ZPixmap : XYPixmap);
image = XGetImage(XtDisplay(toplevel),
XtWindow(display_window),
0 ,0 ,900 ,525 ,AllPlanes, format);
XtMainLoop();
}
This is the error I get...
X error event received from server: BadMatch - parameter mismatch
Failed request major op code 73 X_GetImage
Failed request minor op code 0 (if applicable)
ResourceID 0x600007 in failed request (if applicable)
Serial number of failed request 39
Current serial number in output stream 39
%XLIB-E-ERROREVENT, error event received from server
%TRACE-E-TRACEBACK, symbolic stack dump follows
module name routine name line rel PC abs PC
00086F7F 00086F7F
00086DC8 00086DC8
0008833B 0008833B
00087832 00087832
000A4B8B 000A4B8B
TEST main 10895 00000140 00073D40
T.R | Title | User | Personal Name | Date | Lines |
---|
1706.1 | | DECWIN::FISHER | Burns Fisher 381-1466, ZKO3-4/W23 | Thu Nov 09 1989 13:16 | 3 |
| Have you tried it on both an 8-plane and a 1-plane system?
Burns
|
1706.2 | | MARX::FLEMING | AFE - Acronyms For Everything | Thu Nov 09 1989 15:25 | 6 |
| <<< Note 1706.1 by DECWIN::FISHER "Burns Fisher 381-1466, ZKO3-4/W23" >>>
>Have you tried it on both an 8-plane and a 1-plane system?
>Burns
Just tried it on an 8-plane system and got the same error.
|