• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1574
  • Last Modified:

Delphi Application.processmessage

Hi,

I am using    "Application.ProcessMessages" in my delphi application with flash activex. but it is very slowly executing i want to improve the speed of that can any one suggest the solution.

0
inampudi1
Asked:
inampudi1
  • 3
  • 2
1 Solution
 
inampudi1Author Commented:
in this application i will change mouse position randomly on the flash activex, according to the mouse position the flash animation need to change. for this i used    Application.ProcessMessages;
0
 
inampudi1Author Commented:
SetCursorPos(RadX,RandY);
Application.ProcessMessages;
0
 
Geert GOracle dbaCommented:
Application.ProcessMessages;
This has nothing to do with speed, it just lets the application process the messages it has on the queue.
It's what your using to display the Flash which is the problem.
If nothing in the queue then the application processmessages doesn't process anything.
It's the ActiveX object which is slow
0
 
inampudi1Author Commented:
Thank you for ur reply,


I know that but is there any chance to improve the speed
By using any system level threads like that.

0
 
Geert GOracle dbaCommented:
You can alter windows display options for speed with RightClick MyComputer / Properties
tab Advanced / Performance settings

Or depending on your Video Graphics card you can set other options

or use
The SetThreadPriority function sets the priority value for the specified thread. This value, together with the priority class of the thread's process, determines the thread's base priority level.

BOOL SetThreadPriority(

    HANDLE hThread,      // handle to the thread
    int nPriority       // thread priority level
   );

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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