Hi,
I have a problem with using TOracleEvent in a MDI Child - With a normal "VCL forms application" it works ok.
I have a trigger:
CREATE OR REPLACE TRIGGER xxx
BEFORE
INSERT OR UPDATE
ON KUNDE.EKDAGTEST
REFERENCING OLD AS GAMMEL NEW AS NY
FOR EACH ROW
BEGIN
DBMS_ALERT.SIGNAL('PROGRESS', 'POSITION='||:NY.VERDI);
END;
The package called look like this:
PROCEDURE P_EVENT_TEST IS
BEGIN
for j in 1..100 loop
for i in 1.. 2500000 loop
null;
end loop;
update kunde.ekdagtest
set verdi = J;
commit;
end loop;
end;
The thing is that I get the first event (1) and the last event (100) - in between I get nothing. And I get these two events after the execution of P_EVENT_TEST is done. When I put the same code in a normal VCL form I get the events as expected.
Any idea what the problem is and how this can be solved???
I use: Direct Oracle Access 4.0.7.1
Oracle: 9.2.0.6
I have a problem with using TOracleEvent in a MDI Child - With a normal "VCL forms application" it works ok.
I have a trigger:
CREATE OR REPLACE TRIGGER xxx
BEFORE
INSERT OR UPDATE
ON KUNDE.EKDAGTEST
REFERENCING OLD AS GAMMEL NEW AS NY
FOR EACH ROW
BEGIN
DBMS_ALERT.SIGNAL('PROGRESS', 'POSITION='||:NY.VERDI);
END;
The package called look like this:
PROCEDURE P_EVENT_TEST IS
BEGIN
for j in 1..100 loop
for i in 1.. 2500000 loop
null;
end loop;
update kunde.ekdagtest
set verdi = J;
commit;
end loop;
end;
The thing is that I get the first event (1) and the last event (100) - in between I get nothing. And I get these two events after the execution of P_EVENT_TEST is done. When I put the same code in a normal VCL form I get the events as expected.
Any idea what the problem is and how this can be solved???
I use: Direct Oracle Access 4.0.7.1
Oracle: 9.2.0.6