I have a program that receives string messages from other applications and parses them using VCL. Messages are sent as follows:
AtomId := GlobalAddAtom(PChar(s)); SendMessage(MyProgramHandle, WM_MSG, 0, AtomID); GlobalDeleteAtom(AtomID);
My program receives this message, analyzes it for a while, and then returns control to the application. It takes time to analyze one message to degrade the performance of other applications.
One possible solution is to create a form with the same title and the same class in another thread and rename the class of the main form. But as far as I know, it is not recommended to create forms in streams.
So what are the possible ways to improve performance?
source share