🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #382

Re: Strange ADO issue doesn't happen in debug mode

#382
From: Simon Elliott
Date: Sat, 23 Sep 2006 22:03
43 lines
2454 bytes
On 23/09/2006, Clayton Arends wrote:

> 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.

Thanks for looking into this. I agreee that this is not the solution,
but hopefully it's iterating toward a solution.

You mentioned in an earlier post that this is more a "VB" solution. I
was advised when starting out on this, that this was closer to the
underlying "bare metal" of the way that MS Windows handles ADO, and
therefore I'd experienece less problems and issues. Is this perhaps not
the case?

I wonder if my prerequistes for mulithreading
CoInitializeEx(NULL, COINIT_MULTITHREADED);
is incorrect. The app which ultimately uses all of this is heavily
multithreaded so I want to make sure that mulithreading support is
enabled.


-- 
Simon Elliott    http://www.ctsn.co.uk
Technical Details
Message-ID: <4515af1d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45105819$1@newsgroups.borland.com> <4515408f$1@newsgroups.borland.com> <4515575c@newsgroups.borland.com> <45158a5c$1@newsgroups.borland.com> <45158f64$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: "Simon Elliott" <Simon at ctsn.co.uk>
Subject: Re: Strange ADO issue doesn't happen in debug mode
Newsgroups: borland.public.cppbuilder.database.ado
Reply-To: "Simon Elliott" <News at ctsn.co.uk>
References: <45105819$1@newsgroups.borland.com> <4515408f$1@newsgroups.borland.com> <4515575c@newsgroups.borland.com> <45158a5c$1@newsgroups.borland.com> <45158f64$1@newsgroups.borland.com>
User-Agent: XanaNews/1.17.4.1
NNTP-Posting-Host: 82.152.41.49
Message-ID: <4515af1d@newsgroups.borland.com>
Date: 23 Sep 2006 15:03:09 -0700
X-Trace: newsgroups.borland.com 1159048989 82.152.41.49 (23 Sep 2006 15:03:09 -0700)
Lines: 43
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail