X_ChangeProperty: BadValue Error

265 views
Skip to first unread message

Jaime Machado

unread,
Jan 21, 2015, 8:36:50 AM1/21/15
to mat...@googlegroups.com
Hi,
I'm working with MathGL and FLTK (running in a separate thread) and I always get this single error in the console: 

X_ChangeProperty: BadValue (integer parameter out of range for operation) 0x0

It doesn't seem fatal and everything continues to work. I've debugged my test program and the error doesn't seem to appear after a function call related to MathGL or FLTK. For example it appears in this line:
 
vector<double> f(size);

where size = 60. but if I put 60 instead of size, the error appears in a different line!...

If someone knows how to eliminate the error I'll appreciate the help. thanks.

Jaime

Jaime Machado

unread,
Jan 21, 2015, 8:49:50 AM1/21/15
to mat...@googlegroups.com
Here is a simple test program to illustrate the issue. I create 2 windows and I get 2 error lines:

#include <unistd.h> #include <mgl2/fltk.h>
 

 
using namespace std;
 

 
int main()
 
{
 mglFLTK gr
("test");
 gr
.RunThr();
 gr
.Box();
 gr
.Update();
 

 mglFLTK gr2
("test2");
 gr2
.RunThr();
 gr2
.Box();
 gr2
.Update();
 

 sleep
(20);
 
return 0;
 
}



In the console I get:

X_ChangeProperty: BadValue (integer parameter out of range for operation) 0x0
X_ChangeProperty: BadValue (integer parameter out of range for operation) 0x0

Jaime

mathgl....@gmail.com

unread,
Jan 25, 2015, 1:38:50 PM1/25/15
to mat...@googlegroups.com
Dear Jaime

This is message of FLTK window. Right now I don't know why it is produced. But I suppose it to be low-priority since it don't cause any visual effects (at least I don't see it).

--
You received this message because you are subscribed to the Google Groups "MathGL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathgl+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Kind regards,
Alexey Balakin

Ludovic A.P.

unread,
Apr 19, 2021, 3:52:26 AM4/19/21
to MathGL
I've got the same error message also, using the latest stable mathGL and FLTK.
---------------------------------------------
The message appears when the main window is open with:
main->show( 0, NULL );
instead of just main->show();
---------------------------------------------

Ludo
Reply all
Reply to author
Forward
0 new messages