🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #1073

EOleSysError\Bad variable type

#1073
From: LSP Engineer
Date: Tue, 06 Jun 2000 00:00
46 lines
2060 bytes
When executing the following code, the application on my computer encounters
this exception while on other computers in-house, the code behaves properly.

Here is the code

    AnsiString TAppDataModule::getQOD()
    {
      const OleVariant olvInput = Null;
      OleVariant olvResult;
      WideString wsQOD;

      if (!QODMasterDataSet->Active)
           QODMasterDataSet->Open();

      QODMasterDataSet->Provider->DataRequest(olvInput, olvResult);  <---THIS IS
THE LINE THAT EXCEPTS!!!
      wsQOD = (WideString)olvResult;

      return (AnsiString)wsQOD;
    }

My machine already encountered the known error with the utilcls.h file and the
other PCs
in-house didn't.  The installation of service pack1 created an error in the
*impl file's exported
routine for a TProvider component--->
          STDMETHODIMP TxxxIMPL::Func1(IProviderPtr* Value).
Found this in the Borland FAQs "CBuilder4 Patch Broke MIDAS"
(http://community.borland.com/article/0,1410,10305,00.html).  The other
machine's have
service pack1 installed as well, but my machine had BoundsChecker at one time (I
had to remove it,
for various reasons)

So, its my guess that my PC is finding yet another error incorporated by service
pack1.  I believe the
problem lies with OleVariants and Variants types.

Thanks is advance,


--
Trudy Reiser
trudyw@leapfrog-smart.com
Leapfrog Smart Products, Inc.
Building Smart Solutions for a Dynamic World
Technical Details
Message-ID: <393cf9d2@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,3411dde974a143d7,start
X-Google-Attributes: gidfcd2b,public
From: "LSP Engineer" <trudyw@leapfrog-smart.com>
Subject: EOleSysError\Bad variable type
Date: 2000/06/06
Message-ID: <393cf9d2@dnews>
X-Deja-AN: 631721731
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
X-Trace: 6 Jun 2000 06:17:06 -0800, 63.79.143.249
Organization: Leapfrog Smart Products, Inc.
X-MSMail-Priority: Normal
Reply-To: "LSP Engineer" <trudyw@leapfrog-smart.com>
Newsgroups: borland.public.cppbuilder.database.multi-tier