423,822 Members | 1,356 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,822 IT Pros & Developers. It's quick & easy.

Object reference not found error by PeekMessage

P: 1
hi,

we have a managed code

if (!PeekMessage(ref msg, new HandleRef(null, this.m_hWnd), 0, 0, 0))
{
WaitMessage();
break;
}
I am getting Object reference not found error.
May 29 '18 #1
Share this Question
Share on Google+
2 Replies


RedSon
Expert 5K+
P: 5,000
What is the exact error message? Which object has a reference that can't be found?
May 30 '18 #2

P: 5
May be some variable value is going null.
please debug the code.
1 Week Ago #3

Post your reply

Sign in to post your reply or Sign up for a free account.