[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

SetSystemCursor usage

I am using the SetSystemCursor() API function to change my system cursors in Win95 on the fly.  The function succeeds for the range of all system curors (program loop) and the cursors seem to change okay.  After a couple of mouse clicks, my system locks up (aside from mouse movement).  Is there anything which needs to be done with this call to prevent a system from locking up?
0
dmetzler
Asked:
dmetzler
1 Solution
 
mbhaktaCommented:
Make sure that you donot have any resource leaks when deallocating a cursor from memory. If your system finds resource leaks like cursor (which are system critical) and there is no more memory to allocate, wierd results often are the symptoms. If u have a package like Boundchecker handy use it. It gives you a list of resources you program has leaked as well as the memory your program has lost.
0
 
dmetzlerAuthor Commented:
I am merely using a LoadCursor()/SetSystemCursor() set of calls, so I don't know how anything could be leaking.  I will run w/ BoundsChecker.  Thanks.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now