Developers

Syndicate content

Important Information About Registering

In order to post on the MotifZone forums, you need to be a registered user. We've changed the registration process slightly. To register, go to http://www.motifzone.net/forum/ and click the "Register" button. An administrator will need to verify your account. If you do not receive an email saying that your account has been activated within 48 hours, please send an email to webmaster (@) motifzone (dot) net.

Must Be a Registered User to Post

Hello! We've been getting a lot of spam in the forums. In order to try to counteract this problem, only registered users can now post. Sorry for any inconvenience this causes.

-Megan

Compiling openmotif demos, xmkmf -a: missing separator

Hi all.
I'm trying to compile the OpenMotif samples in the "demos" directory.
I moved to openMotif-2.2.3/demos/programs/periodic and run:
% xmkmf
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/lib/X11/config

It created a Makefile. Running make...
% make
Makefile:1095: *** missing separator. Stop.

Can you help me?

EDIT: I already seen this http://www.motifzone.org/forum/developers/compiling-demos post. I installed openmotif by Ubuntu repository, and I have a bunch of .cf files in /usr/lib/X11/config

Thanks for any reply :)

IO Error Handling In Threads

Hi Everyone,

I noticed that an X lib IO error causes the process to exit. I believe the default X lib IO handler calls 'exit' where then the entire process goes down.

I realize it is possible to set your own handler to handle X lib IO errors with a call to XSetIOErrorHandler. However, still, after calling my own X lib IO error handler, the process still exits.

My issue is this:

What if I create a thread that makes a connection to a Remote X server where the cable to the X server is suddenly cut. I would get the following error:

Problem: Valgrind Reports Memory Leaks Even In Simple X Programs!

Hi Everyone,

Here is a simple X application that has memory leaks.


void SimpleXTest()
{

XtAppContext appContext = NULL;
Widget mainWidget = NULL;

// ------------------------------------------------
//

int argc = 3;//Num of args
char* argv[] =
{
"SimpleXTest",
"-display",
":0.0",
NULL
};

mainWidget = XtVaAppInitialize
(
&appContext,
"Demos",
NULL,
0,
&argc,
argv,
NULL,
NULL
);

XtRealizeWidget(mainWidget);
XtAppMainLoop(appContext);

BX Controls: Changing a widgets parent

Hello,

I have created a combo-box widget, but it got assigned the wrong
parent control area. I need to change the parent control for the combo-box without having to recreate the combo-box.

I have BX 4.0

QUESTION:

How can I do that ?

Thank you very much for any help,
-Areal

motif application crashes while calling XtDestroyWidget

Hi All,
We have a 32bit Motif Gui application. Now we ported the application from Solaris to Linux and the system is crashing very frequently. On our analysis we could find that this issue happened when we are closing the forms in our application. When the forms are closed we will delete the forms and will call the function XtDestroyWidget() to remove the widgets. We ran a purify for the application and we could found that the Stack Array Bounds Read (SBR) is happening when we close the form.

OpenGL and OpenMotif

Hi there! I decided to post here an example of using openGL context inside the openmotif application, built with regards to the articles "X and OpenGL" by Mark Kilgard.
Here is the link to this small project:

http://sourceforge.net/projects/xmgravdots/

It's a simple gravitation interaction visualization program, written in C (with use of OpenMotif GUI libraries and OpenGL). It displays the movement of a system of the material points which are interacting to each other[maybe, the physics engine is not correctly build, it's made in the simpliest way].

Center string at point in a "round" drawing area

Here is some psuedo-code that draws something like a clock:

// Draw a full circle
XDrawArc(display,
drawingArea,
gc,
100,
RADIUS+100,
RADIUS,
RADIUS,
0,
360);

// Draw the numbers on the face
for (i - 1; i <= 12; ++i)
{
angle = i * 30;

x = convertAngleIntoX(angle, RADIUS);
y = convertAngleIntoY(angle, RADIUS);

char numString[5];
sprintf(numString,"%d", i);

XDrawString(display,
drawingArea,
gc,
x,

Possible memory leak -- valgrind indicates ToolTips at fault.

I have an application that by necessity launches a dialogue from a menu item in which the Widgets in the dialogue are created each time, they vary from invocation to invocation.

The application is very long lived and the dialogue used often.
Looking at /proc/$pid/status, VmData is growing.

valgrind indicates the memory leak is with ToolTips.

Below is a test program and valgrind snippet.

On running the program and selecting
Application->Leaky Dialogue->All Done

then

Application->Quit

No leak is detected.