?
Solved

Trusted forward ? how to set it ou what?

Posted on 2006-06-23
6
Medium Priority
?
302 Views
Last Modified: 2008-01-09
I made a simple windows for XLib but a got this error. Goggling I found some references that point to some problems with trusted forward.


ToolKit: Window manager didn't set icon sizes - using default.
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  18 (X_ChangeProperty)
  Value in failed request:  0x0
  Serial number of failed request:  17
  Current serial number in output stream:  23


This is to point where the program stop:

      int fake_argc = 1;
      char *fake_argv[] = { (char *)"programname\0", 0 };

      XSetWMProperties(tk->getDisplay(), win, &windowName, &iconName,  fake_argv, fake_argc, &size_hints, &wm_hints, &class_hints);

any idea?
0
Comment
Question by:rubentrancoso
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 

Author Comment

by:rubentrancoso
ID: 16974233
the output from strace:

read(4, "#  $Xorg: C,v 1.3 2000/08/17 19:"..., 4096) = 772
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0xf7061000, 4096)                = 0
uname({sys="Linux", node="localhost.localdomain", ...}) = 0
open("/home/trancoso/.Xdefaults-localhost.localdomain", O_RDONLY) = -1 ENOENT (No such file or directory)
uname({sys="Linux", node="localhost.localdomain", ...}) = 0
write(3, "7\0\4\0\3\0 \3\2\0 \3\0\0\0\0H\1\32\0\2\0 \3\3\0 \3\24"..., 484) = 484
read(3, "\0\2\21\0\0\0\0\0\0\0\22\0\0\0\0\0\0\0\0\0\37\0\0\0\320"..., 32) = 32
open("/usr/X11R6/lib/X11/XErrorDB", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=36378, ...}) = 0
read(4, "! $Xorg: XErrorDB,v 1.3 2000/08/"..., 36378) = 36378
close(4)                                = 0
brk(0)                                  = 0x9aa2000
brk(0x9ac5000)                          = 0x9ac5000
write(2, "X Error of failed request:  BadV"..., 86X Error of failed request:  BadValue (integer parameter out of range for operation)
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 16974286
Try fake_argc = 2.
0
 

Author Comment

by:rubentrancoso
ID: 16974328
not yet...
ToolKit: Window manager didn't set icon sizes - using default.
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  18 (X_ChangeProperty)
  Value in failed request:  0x0
  Serial number of failed request:  17
  Current serial number in output stream:  23
0
 

Author Comment

by:rubentrancoso
ID: 16974407
I changed the approach an now it work with a minimal to begin

http://tronche.com/gui/x/xlib-tutorial/prog-1.cc
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 17258160
PAQed with points refunded (500)

CetusMOD
Community Support Moderator
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses
Course of the Month15 days, 17 hours left to enroll

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question