Link to home
Start Free TrialLog in
Avatar of LeTay
LeTay

asked on

Application.ProcessMessages compilation error E2003

When I compile my Delphi (Turbo Delphi 2006) application, it fails on  Application.ProcessMessages
I don't know why, I think the uses is okay (Forms etc...)
Any help is welcome
Avatar of MerijnB
MerijnB
Flag of Netherlands image

can you show some code?
Avatar of LeTay
LeTay

ASKER

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ComObj, OleServer, Word2000, ADODB, DB, ActiveX,
  ComCtrls, ExtCtrls, IdBaseComponent, IdComponent, IdTCPConnection, IdAttachmentFile,
  IdTCPClient, IdMessage, IdEmailAddress, IdMessageClient, IdSMTP,
  IdExplicitTLSClientServerBase, IdSMTPBase, Buttons, IdPOP3, SvcMgr, StrUtils,
  Registry, ShellAPI,  IdIOHandler, IdIOHandlerSocket, IdSSLOpenSSL, Math;

.../...

Application.ProcessMessages;   // Compiler doesn't like this one
ASKER CERTIFIED SOLUTION
Avatar of 2266180
2266180
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LeTay

ASKER

Yes it works now, but I am completely surprised !
there is another Application object in one of the units you are using there. Word2000 maybe?

the way to find out is like this:
move the forms uses back where it was and then compile. you'll get the error. then move your mouse cursor over the application string adn you will get a hint in 1-2mseconds which will also tell you in which unit it is declared ;)