admin管理员组文章数量:1289381
I am getting this error when exiting my application. I am using delphi 7 with ZEOSLIB 8, PostgreSQL database ver 16.
The Delphi statement I use for loading blobs from database into bitbutton blobs is as follows:
DBtns[DCounter].Glyph.LoadFromStream(
Datamod.tblChargeCodesgraphic.DataSet.CreateBlobStream(
Datamod.tblChargeCodesgraphic , bmread
).Create
);
The ZEOSLIB component method to read a blob from the the PostgreSQL database is createblobstream
.
This line of code works perfectly, but how do I close the stream with a ZEOSLIB component method? I cannot find one, and ZConnect.CancelOperation
does not work.
I am getting this error when exiting my application. I am using delphi 7 with ZEOSLIB 8, PostgreSQL database ver 16.
The Delphi statement I use for loading blobs from database into bitbutton blobs is as follows:
DBtns[DCounter].Glyph.LoadFromStream(
Datamod.tblChargeCodesgraphic.DataSet.CreateBlobStream(
Datamod.tblChargeCodesgraphic , bmread
).Create
);
The ZEOSLIB component method to read a blob from the the PostgreSQL database is createblobstream
.
This line of code works perfectly, but how do I close the stream with a ZEOSLIB component method? I cannot find one, and ZConnect.CancelOperation
does not work.
1 Answer
Reset to default 0Make sure to Free
the TStream
: Assign the result of CreateBlobStream()
to a variable s
and make sure (with a try
- finally
block) to call s.Free
when you are done reading.
本文标签:
版权声明:本文标题:postgresql - ZEOSLIB, Delphi error: "close all lob streams before closing the resultset" - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741457204a2379824.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论