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 

datasnap access violation

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
lakis
Guest





PostPosted: Tue Mar 22, 2005 10:27 am    Post subject: datasnap access violation Reply with quote



i have used datasnap remote data module to create a multi tier database
application...
i have placed in the remote data module an ado connection ,4 ado tables and
4 dataset providers..i
have also (of course a form1)..i want to when i click the start/shutdown
button on the Form1 to stop or start the datasnap server...when i try to
stop the adoconnection (with connected->false,or cancel()) i get an access
violation,same for the tables(adotable->active=false) the same for the
dataset providers..it seems that i cant change anything in the remote data
module by using a button on the form1...of course i have included the file
header( the funny thing is that if i put an adoconnection in my form and use a
button to start stop it ,it works perfectly!


Back to top
Mark Guerrieri
Guest





PostPosted: Thu Mar 31, 2005 10:25 pm    Post subject: Re: datasnap access violation Reply with quote



Quote:
i have used datasnap remote data module to create a multi tier database
application...
i have placed in the remote data module an ado connection ,4 ado tables
and
4 dataset providers..i
have also (of course a form1)..i want to when i click the start/shutdown
button on the Form1 to stop or start the datasnap server...when i try to
stop the adoconnection (with connected->false,or cancel()) i get an access
violation,same for the tables(adotable->active=false) the same for the
dataset providers..it seems that i cant change anything in the remote
data
module by using a button on the form1...of course i have included the file
header( the funny thing is that if i put an adoconnection in my form and use a
button to start stop it ,it works perfectly!


By design, the DataSnap server should be running on one machine (with no
user interface) and the client that accesses it should be running on another
machine. At the least, they would be running in seperate prcesses on the
same machine. Either way, there is no way to directly access the
properties/methods of the components on the RDM from the client app. Your
access violations are most likely the result of accessingg NULL/undefined
pointers, since the form in the client has no access to the components in
the RDM.

Mark



Back to top
billaras1234
Guest





PostPosted: Fri Apr 01, 2005 10:34 am    Post subject: Re: datasnap access violation Reply with quote



if i have understood correctly you mean to create a separate function inside
the remore data module to activate ore not the compnents inside it (like ado
tables..) and to call this function from another form..i have done this and
i still get a access violation in memory...i dont understand what is going
on..once the rdm starts nothing cant change it?
i believe that there must be a way or it might be a borland bug
Ο "Mark Guerrieri" <mguerrieri (AT) nospam_cmsgrp (DOT) com> έγραψε στο μήνυμα
news:424c78d6$1 (AT) newsgroups (DOT) borland.com...
Quote:
i have used datasnap remote data module to create a multi tier database
application...
i have placed in the remote data module an ado connection ,4 ado tables
and
4 dataset providers..i
have also (of course a form1)..i want to when i click the start/shutdown
button on the Form1 to stop or start the datasnap server...when i try to
stop the adoconnection (with connected->false,or cancel()) i get an
access
violation,same for the tables(adotable->active=false) the same for the
dataset providers..it seems that i cant change anything in the remote
data
module by using a button on the form1...of course i have included the
file
header( the funny thing is that if i put an adoconnection in my form and use a
button to start stop it ,it works perfectly!


By design, the DataSnap server should be running on one machine (with no
user interface) and the client that accesses it should be running on
another
machine. At the least, they would be running in seperate prcesses on the
same machine. Either way, there is no way to directly access the
properties/methods of the components on the RDM from the client app. Your
access violations are most likely the result of accessingg NULL/undefined
pointers, since the form in the client has no access to the components in
the RDM.

Mark





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder 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.