Subject | [IBO] TIB_Event Alerter Problem and Application Exit |
---|---|
Author | Paul Irwin |
Post date | 2001-02-27T20:28:24Z |
I sometimes had this same problem and I found that if I explicitly
UnRegisterEvents before I close the connection it fixed the problem
HTH
Paul
UnRegisterEvents before I close the connection it fixed the problem
HTH
Paul
> -----Original Message-----
> From: Chris Hulsey [mailto:chulsey@...]
> Sent: Tuesday, February 27, 2001 12:06 PM
> To: IBObjects@yahoogroups.com
> Subject: [IBO] TIB_Event Alerter Problem and Application Exit
>
>
> Hello,
>
> I am experiencing a strange problem with the TIB_Event control
> for Interbase. I'm building an application using Borland C++
> Builder 5.0 and IBO components to access an IB Server 6.0. I'm
> using an Event Alerter to be aware of the modifications made by
> other users, so that I can refresh a view screen that outputs
> data on a grid. My application actually register's the TIB_Event
> control successfully and the OnEventAlert executes correctly when
> the event is posted on the server using POST_EVENT "eventname"
> from within a TRIGGER or STORED PROCEDURE. But whenever I close
> my application I get an error:
>
> I am connecting with a TIB_Database control to a remote server
> via TCPIP and the TIB_Event control points to this connection via
> the IB_Connection property.
>
> "Fault with Message Access Violation at address XXXXX read of
> address XXXXX process stopped."
>
> My Code is Simple:
>
> TIB_Database *IBDatabase;
> TIB_Events *IBEvent;
> TPanel * Panel_Event;
>
> void __fastcall TForm1::IBEventEventAlert(TObject *Sender,
> AnsiString AEventName, int AEventCount)
> {
> Panel_Event->Caption = "Event Fired: " + AEventName;
> }
>
> void __fastcall TForm1::Button1Click(TObject *Sender)
> {
> IBEvent->RegisterEvents();
> Panel_Event->Caption = "Registered";
> }
>
> void __fastcall TForm1::Button2Click(TObject *Sender)
> {
> IBEvent->UnregisterEvents();
> Panel_Event->Caption = "Unregistered";
> }
>
>
> Any help would be greatly appreciated.
>
> Chris Hulsey
> chulsey@...
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>