🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

R: Using property of the remote application server

#382
From: Francesco Rossi
Date: Sun, 09 Dec 2001 22:12
23 lines
1678 bytes
Hi,
i found the solution for my problem. I hope this help you.
I must add the code:
ITemp->AddRef ();
for increment the reference of the server to the client object.
The code is:

IDispatch *disp = (IDispatch*)(ClientDataSetTransazioni->AppServer);
IDMFastServerDisp ITemp( (IDMFastServer*)disp);
ITemp->AddRef ();                        // <<<<<
// Property of applicationserver
if (!(bool)ITemp.IsDatabaseOpen) {

BYE
>
> I suffer from similar very annoying problem that happens from time to
> time. I tried to investigate and discovered an AV happens with Variant
> variable when trying to invoke VarClear method somewhere inside VCL.
> The most interesting is when I rebuild the project the problem is gone
> till next time...
>
> --
> Vladimir Ulchenko aka vavan
Technical Details
Message-ID: <3c13e620_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3c11065d_2@dnews> <3rr31u8febrftb176tm88f4nb1nlpkq5jk@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,547ad9bf36c1637f
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2001-12-09 14:32:02 PST
From: "Francesco Rossi" <inforsi@tin.it>
Newsgroups: borland.public.cppbuilder.database.multi-tier
References: <3c11065d_2@dnews> <3rr31u8febrftb176tm88f4nb1nlpkq5jk@4ax.com>
Subject: R: Using property of the remote application server
Date: Sun, 9 Dec 2001 23:12:24 +0100
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 213.45.115.68
Message-ID: <3c13e620_2@dnews>
X-Trace: dnews 1007937056 213.45.115.68 (9 Dec 2001 14:30:56 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews