Article View: borland.public.cppbuilder.database.ado
Article #381Re: Strange ADO issue doesn't happen in debug mode
From: Clayton Arends
Date: Sat, 23 Sep 2006 19:47
Date: Sat, 23 Sep 2006 19:47
24 lines
1830 bytes
1830 bytes
The only function that causes the AV in this test application is the
"Create" function. If I make no other changes to the application and simply
wrap the Exec() call in a try..catch block then the app executes correctly.
It even executes other code in the try area which means it's not throwing
anything. Example:
// Create the database
vCatalog=Variant::CreateObject("ADOX.Catalog");
try
{
vCatalog.Exec(Function("Create") << strConnectionString);
printf("1\n"); //<-- this prints
}
catch (...)
{
printf("ouch!\n"); //<-- does not print
throw;
}
printf("2\n");
I don't believe this is the solution but it is interesting. I'm going to
perform some more searches in Google.
- Clayton
Technical Details
Message-ID:
<45158f64$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45105819$1@newsgroups.borland.com> <4515408f$1@newsgroups.borland.com> <4515575c@newsgroups.borland.com> <45158a5c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,bfc14363b29b7122 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Clayton Arends" <nospam_claytonarends@hotmail.com> Newsgroups: borland.public.cppbuilder.database.ado References: <45105819$1@newsgroups.borland.com> <4515408f$1@newsgroups.borland.com> <4515575c@newsgroups.borland.com> <45158a5c$1@newsgroups.borland.com> Subject: Re: Strange ADO issue doesn't happen in debug mode Date: Sat, 23 Sep 2006 12:47:59 -0700 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 71.83.251.192 Message-ID: <45158f64$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1159040868 71.83.251.192 (23 Sep 2006 12:47:48 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail