post error raise twice

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
lyan
Posts: 3
Joined: Fri 20 Apr 2007 04:59

post error raise twice

Post by lyan » Thu 23 Aug 2007 04:58

I am using TIBCQuery. When i catch the OnPostError and display an error message, it always appears twice. Does anyone know how to stop this?

thanks,
Lai

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 27 Aug 2007 12:10

Probably the second message you see is an exception message that the application shows automatically when an exception occurs in the application. You can assign daAbort to the Action parameter in the OnPostError event handler. In this case the exception will not occur, and the second message will not be shown.

Post Reply