Subject | Re: [IBO] Problems in TIB_BlobStream with the last Beta - The Fix |
---|---|
Author | m. Th. |
Post date | 2009-07-21T10:45:27Z |
m. Th. wrote:
I succeeded to run one of our real world apps. (~800 kLOC). DevExpress,
VirtualTrees (ok, it needed some minor changes here), FastReport and of
course IBO.
Problems which still remain to solve:
1. TIB_Events doesn't work
The following code...
procedure TdmoMain.ibdMainAfterConnect(Sender: TIB_Connection);
begin
ib_eMain.RegisterEvents; //ib_eMain is a TIB_Events instance
end;
crashes very badly with an AV in fbclient.dll. Definitely needs to look at.
2. TIBODatabase.Password not streamed correctly .dfm
Self explaining. There is also a bug report on Sf.net on the issue.
3. A bunch of 'Record not found' exceptions (stack trace & code bellow)
but the program seems to work ok because AFAIS these are located
immediately after opening/refreshing the dataset so, anyway, the cursor
is at the beginning. But anyway imho this shows a weak point in our
bookmark engine.
DB.TDataSet.GotoBookmark
IBODataSet.TIBODataSet.Resync([rmExact..rmCenter])
DB.TDataSet.Resync
here is the code:
procedure TIBODataset.Resync( Mode: TResyncMode );
begin
if Active then
begin
// It is important to prevent the Resync() process from being interrupted
// by a callback. Rows should already be in the buffer but perhaps not.
InternalDataset.BeginCallbackFreeze;
try
inherited Resync( Mode ); //<--- Exception here!
finally
InternalDataset.EndCallbackFreeze;
end;
end;
end;
If someone has something to say / help...
HTH,
m. Th.
> Also, the this problem (perhaps) is related to Blobs rather toBingo!
> DevEx. specifics.
> I succeeded to run a simple app with DevExpress as GUI layer. However, I
> have a real world application which still throws enough AVs. Also, if
> you (or someone else) has similar findings please report here.
>
I succeeded to run one of our real world apps. (~800 kLOC). DevExpress,
VirtualTrees (ok, it needed some minor changes here), FastReport and of
course IBO.
Problems which still remain to solve:
1. TIB_Events doesn't work
The following code...
procedure TdmoMain.ibdMainAfterConnect(Sender: TIB_Connection);
begin
ib_eMain.RegisterEvents; //ib_eMain is a TIB_Events instance
end;
crashes very badly with an AV in fbclient.dll. Definitely needs to look at.
2. TIBODatabase.Password not streamed correctly .dfm
Self explaining. There is also a bug report on Sf.net on the issue.
3. A bunch of 'Record not found' exceptions (stack trace & code bellow)
but the program seems to work ok because AFAIS these are located
immediately after opening/refreshing the dataset so, anyway, the cursor
is at the beginning. But anyway imho this shows a weak point in our
bookmark engine.
DB.TDataSet.GotoBookmark
IBODataSet.TIBODataSet.Resync([rmExact..rmCenter])
DB.TDataSet.Resync
here is the code:
procedure TIBODataset.Resync( Mode: TResyncMode );
begin
if Active then
begin
// It is important to prevent the Resync() process from being interrupted
// by a callback. Rows should already be in the buffer but perhaps not.
InternalDataset.BeginCallbackFreeze;
try
inherited Resync( Mode ); //<--- Exception here!
finally
InternalDataset.EndCallbackFreeze;
end;
end;
end;
If someone has something to say / help...
HTH,
m. Th.