Article View: borland.public.cppbuilder.database.multi-tier
Article #375Re: R: AppServer Bind through COM+
From: Andy Walker
Date: Tue, 04 Dec 2001 16:56
Date: Tue, 04 Dec 2001 16:56
47 lines
2115 bytes
2115 bytes
Francesco,
Sorry I took so long to reply - work commitments etc.
I'm not really sure why you would want to perform the code
twice BUT make sure that you 'unbind' after you have finished
with the interface,
if (AppServer)
{
if (AppServer->IsBound ())
AppServer->Unbind (true);
delete AppServer;
}
However, I normally connect to the interface once, and pass a
pointer around to every program that needs to access the
AppServer. When I have finished I then unbind and close.
Hope this helps.
Andy
"Francesco Rossi" <inforsi@tin.it> wrote:
>HI,
>yes this code work fine, but if i call this part of source code more then
>one time, for examples in a private method 'connection' i receive an error
>'on access violation on address FFFFFF' and IDE mark the first line of your
>source.
>Can you tell me how i can resolv the problem ?
>Thank.
>Andy Walker <andy@iola.co.uk> wrote in message 3bfa3d8c_1@dnews...
>>
>> This is how I solved it,
>>
>> IDispatch* disp = (IDispatch*)(DCOMConnection->AppServer);
>> AppServer = new IMDbRDMDisp((IMDbRDM*)disp);
>> AppServer->xyz ();
>>
>> Andy
>>
>> "Andy" <andy@iola.co.uk> wrote:
>
>
>
Technical Details
Message-ID:
<3c0d0056$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!newsfeed.wirehub.nl!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3bf4223f$1_2@dnews> <3bfa3d8c_1@dnews> <3c02f816_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,dd3cea6be75e8cca X-Google-Attributes: gidfcd2b,public X-Google-ArrivalTime: 2001-12-04 09:11:14 PST From: "Andy Walker" <andy@iola.co.uk> Sender: "Andy Walker" <andy@iola.co.uk> Reply-To: "Andy Walker" <andy@iola.co.uk> Subject: Re: R: AppServer Bind through COM+ Newsgroups: borland.public.cppbuilder.database.multi-tier X-User-Info: 159.235.50.12 159.235.50.12 References: <3bf4223f$1_2@dnews> <3bfa3d8c_1@dnews> <3c02f816_1@dnews> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3c0d0056$1_2@dnews> Date: 4 Dec 2001 08:56:54 -0800 X-Trace: dnews 1007485014 207.105.83.65 (4 Dec 2001 08:56:54 -0800) Lines: 48 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!newsfeed.wirehub.nl!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews