Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 832513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:22:26+00:00 2026-05-15T04:22:26+00:00

We are seeing bad behavior in an application when it runs on Server 2008

  • 0

We are seeing bad behavior in an application when it runs on Server 2008 (not R2). This is a WinForms application, and Control.MousePosition is returning {0,0} no matter where the mouse is on the screen… Control.MousePosition just makes a P/Invoke call to Win32 api GetCursorPos().

Followup:

I am using Control.MousePosition from WinForms, which calls GetCursorPos, and I can see that it definitely ignores the return value. Asking my question another way, “What can cause GetCursorPos() to suddenly start returning FALSE, when it worked only milliseconds before in the same process?”

// From .NET Reflector....
public static Point get_MousePosition()
{
    NativeMethods.POINT pt = new NativeMethods.POINT();
    UnsafeNativeMethods.GetCursorPos(pt);
    return new Point(pt.x, pt.y);
}

There is a control in our library that calls SetWindowsHookEx to hook WH_CALLWNDPROCRET for our entire process. I’m suspicious of this code, but tracing statements show that we’re getting in + out of that hook cleanly.

What else should I be looking for?

Thanks,
Dave

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:22:26+00:00Added an answer on May 15, 2026 at 4:22 am

    It turns out that this can happen with /LARGEADDRESSAWARE 32 bit applications running on 64 bit Server 2008 R1 only.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know I'm doing this a bad way... but I'm having trouble seeing any
I have been seeing this a lot lately and I am unable to find
Seeing a checked expection in API is not rare, one of the most well
having a strange issue, must be something I'm just not seeing. I set up
I'm seeing this crash my iOS app after it's been running for 10 minutes:
Was just wondering about DependencyProperties. Usually I'm seeing this kind of coding standard when
My server keeps crashing. It is especially bad in localized parts of my app
I'm seeing this error when I run: rake/gem from my Git Bash. Anyone know
I am seeing strange behavior of jQuery UI draggable elements using Chrome. In the
I need the LinkLabel control to not change Focus when it is clicked. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.