By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,897 Members | 1,580 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,897 IT Pros & Developers. It's quick & easy.

Object reference not found error by PeekMessage

P: 1

we have a managed code

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

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: 10
May be some variable value is going null.
please debug the code.
Dec 1 '18 #3

Post your reply

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