Re: rdesktion started segmentation faulting shortly after logon.
Nico Baggus <[email protected]>
| Newsgroups | gmane.network.rdesktop.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
Wrapping the part after XCreateImage with
if (image) {
if (g_ownbackstore)....
........ remainder of procedure....
}
XFree(image)
}
makes the program run again, some artefacts still show on the screen
(Popup window on windos is not removed etc.).
as well as a bunch of
ERROR: get bitmap 1:18 messages.
on stdout.
If more info is needed or a test of a path just leave a notice
and i'll try it.
kind regards,
Nico Baggus
>
> void
> ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy)
> {
> XImage *image;
> uint8 *data;
>
> offset *= g_bpp / 8;
> data = cache_get_desktop(offset, cx, cy, g_bpp / 8);
> if (data == NULL)
> return;
>
> image = XCreateImage(g_display, g_visual, g_depth, ZPixmap, 0,
> (char *) data, cx, cy, BitmapPad(g_display),
> cx * g_bpp / 8);
>
> if (g_ownbackstore)
> {
> XPutImage(g_display, g_backstore, g_gc, image, 0, 0, x, y,
> cx, cy);
> XCopyArea(g_display, g_backstore, g_wnd, g_gc, x, y, cx,
> cy, x, y);
> ON_ALL_SEAMLESS_WINDOWS(XCopyArea,
> (g_display, g_backstore, sw->wnd,
> g_gc,
> x, y, cx, cy, x - sw->xoffset, y -
> sw->yoffset));
> }
> else
> {
> XPutImage(g_display, g_wnd, g_gc, image, 0, 0, x, y, cx,
> cy); ON_ALL_SEAMLESS_WINDOWS(XCopyArea,
> (g_display, g_wnd, sw->wnd, g_gc,
> x, y, cx, cy,
> x - sw->xoffset, y -
> sw->yoffset)); }
>
> XFree(image);
> }
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/