Article View: borland.public.cppbuilder.database.ado
Article #698ValueListEditor and ADOBlobStream
From: Nerio
Date: Thu, 14 Jul 2005 16:29
Date: Thu, 14 Jul 2005 16:29
26 lines
1691 bytes
1691 bytes
I wrote part of a program where, in a ADODataSet, record by record I collect
a lot of field names and their respective content transferring them into a
ValueListEditor. Next :
---
ADOTableX->Edit();
TADOBlobStream *BS = new TADOBlobStream TBlobField *) ADOTableXAnalisys,
bmWrite);
try
{ S = ValueList->Strings->Text.Length() + 1; char *P = new char[S];
try
{ P = ValueList->Strings->Text.c_str();
BS->Write(P, S);
}
catch(...)
{ delete P; throw; }
delete P;
}
catch(...)
{ delete BS; throw; }
delete BS;
ADOTableX->Post; // all those to fill the Access BlobField named Analisys
---
passing to to following record but I have an access exception writing to the
blob field (not always at the same record)
Can you explain what happen
Thanks Nerio
Technical Details
Message-ID:
<42d692d4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,429fab098c07d30,start X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Nerio" <ne_serzanti@tin.it> Newsgroups: borland.public.cppbuilder.database.ado Subject: ValueListEditor and ADOBlobStream Date: Thu, 14 Jul 2005 18:29:14 +0200 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 NNTP-Posting-Host: 82.53.166.184 Message-ID: <42d692d4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1121358548 82.53.166.184 (14 Jul 2005 09:29:08 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail