Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Class method called by keyboard hook callback has an empty "this" pointer
Re: Class method called by keyboard hook callback has an empty "this" pointer [message #37335 is a reply to message #37334] |
Sun, 23 September 2012 12:51 |
|
Hi Mirko,
Welcome to the forum
Mircode wrote on Sun, 23 September 2012 11:31 | Inside the LowLevelKeyboardProc function, I call
MainWindow->ProcessKbdEvent(...)
but inside the ProcessKbdEvent method, "this" does not point to MainWindow. Instead, it is a nullpointer.
|
This would most probably happen if MainWindow==null at the time of calling MainWindow->ProcessKbdEvent(). You can add a check for this in LowLevelKeyboardProc to confirm this. I don't know how your code is structured, but I believe that the function is called before any instance of KeyBuddy2 is created or something like that.
Best regards,
Honza
[Updated on: Sun, 23 September 2012 12:52] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu May 16 04:16:05 CEST 2024
Total time taken to generate the page: 0.01464 seconds
|