Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Windows messages priority

Status
Not open for further replies.

luben111

Advanced Member level 1
Joined
Mar 2, 2002
Messages
490
Helped
111
Reputation
223
Reaction score
107
Trophy points
1,323
Location
UK
Activity points
3,890
Hi,
I have an application written in Delphi 2010 - with one thread. The thread is fetching data from a HID device and then it's sending a message WM_NEW_DATA_ARRIVED (WM_USER + 1) to the main form via PostMessage() to display the results.
I found that if the sytem is busy the message delays and decreases the performance of the program.

My question is - is there a way to increase the priorty of my Windows message WM_NEW_DATA_ARRIVED so when I call PostMessage the data processing in main form can start ASAP.

Thank you
 

bluehole

Full Member level 6
Joined
Sep 1, 2009
Messages
345
Helped
74
Reputation
148
Reaction score
73
Trophy points
1,308
Location
Some where In INDIA
Activity points
3,290
I am an idiot in Windows, But can it be possible to pass the data through the IPC privately instead of using Windows message Queue?

If so that will be better. Any OS treats user signal or message with lower priority hence there will be delay. But if IPC is used then the channel is dedicated and data transfer will be faster.
 

luben111

Advanced Member level 1
Joined
Mar 2, 2002
Messages
490
Helped
111
Reputation
223
Reaction score
107
Trophy points
1,323
Location
UK
Activity points
3,890
Hi bluehole
very interesting idea! I'm investigating this possibility - very promising!
Thank you!
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top