Jump to content

Question about X window system "XmCreateMainWindow"


Recommended Posts

Guest three_white
Posted

Hi, I'm dealing with a problem on Linux (Red Hat 4.4.7-4) which is related to X window system. In my program, I use:

 

"main_w = XmCreateMainWindow (toplevel, "main_w", NULL, 0);"

 

to create a main window and I find that the window id value of the first child of main_w is a very large integer "267110801680". I use the command below to find this number

 

when I debug it in DDD:

 

print *(((CompositeWidget) main_w)->composite)->children[0]

 

This large integer results in a memory problem when I use Valgrind to check the memory leakage which is "Invalid read".

 

The abnormal large integer should be a return value from "XmCreateMainWindow" and is it related to my operating system?

 

BR

Dong

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...