Solved

SetSystemCursor usage

Posted on 1997-08-03
2
224 Views
Last Modified: 2013-11-20
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
Comment
Question by:dmetzler
2 Comments
 
LVL 4

Accepted Solution

by:
mbhakta earned 50 total points
Comment Utility
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
 

Author Comment

by:dmetzler
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now