?
Solved

Delphi Application.processmessage

Posted on 2009-03-29
5
Medium Priority
?
1,556 Views
Last Modified: 2013-11-23
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
Comment
Question by:inampudi1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:inampudi1
ID: 24016304
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
 

Author Comment

by:inampudi1
ID: 24016313
SetCursorPos(RadX,RandY);
Application.ProcessMessages;
0
 
LVL 38

Expert Comment

by:Geert Gruwez
ID: 24016640
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
 

Author Comment

by:inampudi1
ID: 24016664
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
 
LVL 38

Accepted Solution

by:
Geert Gruwez earned 750 total points
ID: 24017805
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month8 days, 13 hours left to enroll

765 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