tpaviot/oce — Issue #239: Problem creating Xw_Window in Ubuntu 11.10
Author: ernes0186
Created: 2012-01-20 13:42:33+00:00
State: open

Hello everyone.
I execute my application, based in OCE 0.3, in ubuntu 11.10 but it finish when try to create a Xw_Window. It work well in Ubuntu 10.04. Here, a fragment of code, the viewer and view seem create correctly.

//********
view = Handle_V3d_Viewer::DownCast(viewer)->CreateView();

int windowHandle = (int) winId();
short hi, lo;
lo = (short) windowHandle;
hi = (short) (windowHandle >> 16);

#ifdef WNT
hWnd = new WNT_Window(Handle(Graphic3d_WNTGraphicDevice)::DownCast(viewer->Device()), (int) hi,(int) lo);
#else
hWnd = new Xw_Window(Handle(Graphic3d_GraphicDevice)::DownCast(viewer->Device()),(int) hi,(int) lo,Xw_WQ_SAMEQUALITY);
#endif // WNT

I do not know the cause. Maybe it not recognize the xorg server of Ubuntu 11.10.
Thanks in advance.