events not working - isc_event_block returns different buffer length for same
events
------------------------------------------------------------------------------------
Key: CORE-5889
URL: http://tracker.firebirdsql.org/browse/CORE-5889
Project: Firebird Core
Issue Type: Bug
Components: API / Client Library, Engine
Affects Versions: 3.0.3, 2.5.8, 3.0.2, 3.0.4
Reporter: Sorien
often events are not working in my app I found that for same event like
"EVENT_MYTABLE_FOO" isc_event_block returns different buffer lengths like 27
and 7 (FEventBufferLen in code bellow)
when it returns 27 everything is working but when i returns 7 app will not get
any event
it looks like bug for me, but i can't find any documentation for that function,
its maybe more support question but really don't know how to use your mailing
list :/
code
procedure TDBEventThread.RegisterEvents;
var
sib_event_block: Tsib_event_block;
function EBP(Index: Integer): PAnsiChar;
begin
if (Index > FEvents.Count) then
Result := nil
else
Result := PAnsiChar(AnsiString(FEvents[Index - 1]));
end;
begin
FEventBuffer := nil;
FResultBuffer := nil;
FEventBufferLen := 0;
FFirstTime := True;
FEventCount := Min(FEvents.Count, IB_MAX_EVENT_BLOCK);
sib_event_block :=
Tsib_event_block(FPlainDriver.GetFirebirdAPI.isc_event_block);
FEventBufferLen := sib_event_block(@FEventBuffer, @FResultBuffer,
FEventCount, EBP(1), EBP(2), EBP(3), EBP(4), EBP(5), EBP(6), EBP(7), EBP(8),
EBP(9), EBP(10), EBP(11), EBP(12), EBP(13), EBP(14), EBP(15));
end
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel