BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DCOMCONNECTION

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Fernando Afonso Ferreira
Guest





PostPosted: Fri Feb 03, 2006 4:24 pm    Post subject: DCOMCONNECTION Reply with quote



We are having many problems with DCOM with a error "Missing Connection or
ConnectionString".

We Would like to know how to solve this problem? The erros don't have a
default... they happen in different situations....

Thanks in advance....

Configuration:
Delphi 2005 Enterprise
Remote Data Module
ADO + ClientDataSet
Sql Server 2000
Back to top
Joe Bain
Guest





PostPosted: Mon Feb 06, 2006 5:03 pm    Post subject: Re: DCOMCONNECTION Reply with quote



Fernando Afonso Ferreira wrote:

Quote:
We are having many problems with DCOM with a error "Missing
Connection or ConnectionString".

We Would like to know how to solve this problem? The erros don't have
a default... they happen in different situations....

Thanks in advance....

Configuration:
Delphi 2005 Enterprise
Remote Data Module
ADO + ClientDataSet
Sql Server 2000

Looks like the ADO dataset on your backend is causing that error.

--
--------------
Joe Bain
www.iegsoftware.com
Back to top
Fernando Afonso Ferreira
Guest





PostPosted: Fri Feb 17, 2006 2:03 pm    Post subject: Re: DCOMCONNECTION Reply with quote



We create one event on server to debug Adoquery-"beforeopen" and see that
the property Connection really miss the "Connection Reference" random.

We use many Remote Data Modules - on Remote Main - and Other Remotes
childs - all the remotes childs reference the ADOConnection that allow the
Main Remote.

What should we do?

Thanks in advance....


"Joe Bain" <j.b.a.i.n (AT) a (DOT) d.d.o.n.s.y.s.t.e.m.s..c.o.m> escreveu na mensagem
news:43e7720f$1 (AT) newsgroups (DOT) borland.com...
Quote:
Fernando Afonso Ferreira wrote:

We are having many problems with DCOM with a error "Missing
Connection or ConnectionString".

We Would like to know how to solve this problem? The erros don't have
a default... they happen in different situations....

Thanks in advance....

Configuration:
Delphi 2005 Enterprise
Remote Data Module
ADO + ClientDataSet
Sql Server 2000

Looks like the ADO dataset on your backend is causing that error.

--
--------------
Joe Bain
www.iegsoftware.com
Back to top
Joe Bain
Guest





PostPosted: Fri Feb 17, 2006 3:03 pm    Post subject: Re: DCOMCONNECTION Reply with quote

Fernando Afonso Ferreira wrote:

Quote:
We create one event on server to debug Adoquery-"beforeopen" and see
that the property Connection really miss the "Connection Reference"
random.

We use many Remote Data Modules - on Remote Main - and Other Remotes
childs - all the remotes childs reference the ADOConnection that
allow the Main Remote.

What should we do?

Thanks in advance....



The ADOConnection you set in teh child RDMs at design time is not any
good at run time. They all referance the same connection, not the one
on the parent RDM. You need to create a setter function in the child
RDM and when the TSharedConnection in the client connects it calls the
function on the parent RDM to get the child RDM. That is when you set
the ADO connection in the child RDM.

Here is some code from a live app. It uses IBX and TSocketConnection,
but it should work the same way. TDataRDM is the Parent IClaimMasterRDM
is the Child.


function TDataRDM.Get_ClaimMasterRDM: IClaimMasterRDM;
begin
if(not assigned(FClaimMasterRDM)) then begin
FClaimMasterRDM := FClaimMasterRDMFactory.CreateComObject(nil) as
IClaimMasterRDM;
FClaimMasterRDM.DataRDM := Self;
FClaimMasterRDM.RiskDB_IB := integer(ibRiskDB);//here I set the
database
end;
Result := FClaimMasterRDM;
end;


--------------
Joe Bain
www.iegsoftware.com
Back to top
Fernando Afonso Ferreira
Guest





PostPosted: Fri Feb 24, 2006 2:03 pm    Post subject: Re: DCOMCONNECTION Reply with quote

Joe,

We use your suggest and the missing connection error disapear.

Thanks very much....

Best regards,

Fernando
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.