Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with mouseX and ofGetMouseX() #117

Closed
kalwalt opened this issue Jan 12, 2013 · 3 comments
Closed

issue with mouseX and ofGetMouseX() #117

kalwalt opened this issue Jan 12, 2013 · 3 comments

Comments

@kalwalt
Copy link

kalwalt commented Jan 12, 2013

tested the easyCamExample to find the reason of this issue #86 .
I did simply this test:

void testApp::mousePressed(int x, int y, int button){
ofLog(OF_LOG_ERROR, "button :" + mouseX);
}

and got :

[error] button :
[error] LN9__gnu_cxx12_Lock_policyE2EEE
[error] u_cxx12_Lock_policyE2EEE
[error] unted_base_implIP15ofAppBaseWindowSt25pointer_to_unary_functionIS2_vELN9__gnu_cxx12_Lock_policyE2EEE
[error] EE
[error] _Lock_policyE2EEE
[error] _unary_functionIS2_vELN9__gnu_cxx12_Lock_policyE2EEE
[error] _implIP9ofBaseAppNS_11_Sp_deleterIS1_EELN9__gnu_cxx12_Lock_policyE2EEE
[error] ary_functionIS2_vELN9__gnu_cxx12_Lock_policyE2EEE

this happens also with ofGetMouseX() so i suppose that this is the reason that easyCam is not working. At the moment i have no idea how to fix it . @arturoc @bakercp Maybe something is missed in ofAppEGLWindow.cpp?

@damian0815
Copy link

your log statement should be this:
ofLog(OF_LOG_ERROR, "button :" + ofToString(mouseX) );
(this may be too much information, but:) otherwise the compiler thinks you print the string starting at (the memory location of "button" + mouseX bytes) which is some trash.. the trash is what is getting printed.

@kalwalt
Copy link
Author

kalwalt commented Jan 12, 2013

yes i remembered this and i'm writing just this! ouch sorry..

@kalwalt
Copy link
Author

kalwalt commented Jan 12, 2013

anyway,thanks for the quick answer @DamianNZ !
please, close the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants