Mega Search
23.2 Million


Sign Up

Make a donation  
IBEVENT doesn't fire  
News Group: embarcadero.public.delphi.database.interbase_express

XE5 and IBX3
I don't get IBEvent.OnEventAlert fired, in debug mode program doesn't stop.
I checked IBEvent.Registered is true, and events are properly defined.
I am sure IBX executes trigger that post event, because same trigger update other table correctly.

How can I investigate my app why event doesn't fire alert ?

Adalberto Baldini

CREATE trigger sezio_au_pevt for sezio
active after update position 0
AS
begin
 if (not (new.csoc = old.csoc)) then  post_event old.csoc||'_SEZIO';
 post_event new.csoc||'_SEZIO';
 post_event 'SEZIO';

/* aggiorna data ultima modifica al DB per Backup Automatico */
 execute procedure  ULTIMO_AGGIORNAMENTO ;
end

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 29-Aug-2014, at 7:54 AM EST
From: Adalberto Baldini
 
Unable to scan program's header (was Re: IBEVENT doesn't fir  
News Group: embarcadero.public.delphi.database.interbase_express
Adalberto Baldini wrote:
> What do you mean with different tread ?

A thread is a discussion line. This thread is named " IBEVENT doesn't 
fire".  The second most recent thread in this forum is 
"Tibdataset:ModifySQL update two or more tables". How you create a new 
thread depends on your interface. If you are using HTTP (IOW, your web 
browser), the link is called "Post New Thread". If you are using NNTP, 
you just create a new message.

This line of discussion does not appear to be about IBEvents any more, 
but rather the error "Unable to scan program's header", so a new line of 
discussion is warranted. It's also does not appear to be an IBX issue, 
so a different forum seems to be appropriate.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 15-Sep-2014, at 12:15 PM EST
From: quinn wildman
 
Re: IBEVENT doesn't fire  
News Group: embarcadero.public.delphi.database.interbase_express
Adalberto Baldini wrote:
>> {quote:title=quinn wildman wrote:}{quote}
>> I suggest you start a different thread 
> 
> What do you mean with different tread ?
> 
> Today it compiles, and save exe in win32\debug  dir, but it shows error msg 
> Could not find program in ....\win64\debug\Events.exe
> 
> Output dir is set =  .\$(Platform)\$(Config)
> 
> Adalberto

Do you have Avast as your anti virus?  In any case it sounds like your anti 
virus is detecting a false positive and quarantining the created exe.  Avast is 
known to mis identify Delphi apps all the time.

-- 
Jeff Overcash (TeamB)
       (Please do not email me directly unless  asked. Thank You)
And so I patrol in the valley of the shadow of the tricolor
I must fear evil. For I am but mortal and mortals can only die.
Asking questions, pleading answers from the nameless
faceless watchers that stalk the carpeted  corridors of Whitehall.
              (Fish)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 15-Sep-2014, at 9:47 AM EST
From: Jeff Overcash (TeamB)
 
Re: IBEVENT doesn't fire  
News Group: embarcadero.public.delphi.database.interbase_express
> {quote:title=quinn wildman wrote:}{quote}
> I suggest you start a different thread 

What do you mean with different tread ?

Today it compiles, and save exe in win32\debug  dir, but it shows error msg 
Could not find program in ....\win64\debug\Events.exe

Output dir is set =  .\$(Platform)\$(Config)

Adalberto

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 14-Sep-2014, at 11:39 PM EST
From: Adalberto Baldini
 
Re: IBEVENT doesn't fire  
News Group: embarcadero.public.delphi.database.interbase_express
quinn wildman wrote:
> I suggest you start a different thread about using this sample. I've
> never seen the error "Unable to scan program's header" before.

Oh, I did find one support case on this. There the customer said " The 
issue appears to be related to Parallels and how it mounts Mac disks. If 
I run the project from the virtual disk, rather than the Mac disk 
mounted under Parallels then it works."

Not sure if this applies to you. If not, please start a new thread.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 9-Sep-2014, at 8:20 AM EST
From: quinn wildman
 
Re: IBEVENT doesn't fire  
News Group: embarcadero.public.delphi.database.interbase_express
I suggest you start a different thread about using this sample. I've 
never seen the error "Unable to scan program's header" before.

Adalberto Baldini wrote:
> Thanks. Compiling I get error :
>
> Unable to scan program's header

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 9-Sep-2014, at 8:04 AM EST
From: quinn wildman
 
Re: IBEVENT doesn't fire  
News Group: embarcadero.public.delphi.database.interbase_express
Thanks. Compiling I get error :

Unable to scan program's header

Adalberto

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 8-Sep-2014, at 11:13 PM EST
From: Adalberto Baldini
 
Re: IBEVENT doesn't fire  
News Group: embarcadero.public.delphi.database.interbase_express
Option 1:
Start Menu, All Programs, Embarcadero RAD Studio XE5 group, find Samples 
shortcut menu choice.

Option 2:
Navigate to welcome page in your IDE. Select Projects | Open Sample Project.

Option 3:
Use Windows Explorer to navigate to where you installed them, which is 
probably C:\Users\Public\Documents\RAD Studio\12.0\Samples.


Adalberto Baldini wrote:
> I don't find demos in my installed XE5, where can I get it ?
> Adalberto
>

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 8-Sep-2014, at 8:08 AM EST
From: quinn wildman
 
Re: IBEVENT doesn't fire  
News Group: embarcadero.public.delphi.database.interbase_express
I don't find demos in my installed XE5, where can I get it ?
Adalberto

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 8-Sep-2014, at 4:33 AM EST
From: Adalberto Baldini
 
Re: IBEVENT doesn't fire  
News Group: embarcadero.public.delphi.database.interbase_express
Adalberto Baldini wrote:
> Yes I did.
> There is a way to see events inside DB ?  query or somethings like this ?
> 
> Adalberto

No events fire and any client that has registered that they want to see them 
gets a callback.  Once fired there is nothing to query.

The only issue with XE5 events is under 64 bits, 32 bits had no known issues. 
you can test with the Events IBX demo that ships with te product.

-- 
Jeff Overcash (TeamB)
       (Please do not email me directly unless  asked. Thank You)
And so I patrol in the valley of the shadow of the tricolor
I must fear evil. For I am but mortal and mortals can only die.
Asking questions, pleading answers from the nameless
faceless watchers that stalk the carpeted  corridors of Whitehall.
              (Fish)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 1-Sep-2014, at 12:05 AM EST
From: Jeff Overcash (TeamB)