Solved

Delphi Application.processmessage

Posted on 2009-03-29
5
1,535 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
  • 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 36

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 36

Accepted Solution

by:
Geert Gruwez earned 250 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

708 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

14 Experts available now in Live!

Get 1:1 Help Now