Article View: borland.public.cppbuilder.database.multi-tier
Article #83Re: datasnap access violation
From: billaras1234
Date: Fri, 01 Apr 2005 10:34
Date: Fri, 01 Apr 2005 10:34
40 lines
2966 bytes
2966 bytes
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@nospam_cmsgrp.com> ������ ��� ������ news:424c78d6$1@newsgroups.borland.com... > > 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(<include...)...what am i doing wrong? > > 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 > >
Technical Details
Message-ID:
<424d23a4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<423ff302@newsgroups.borland.com> <424c78d6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: fcd2b,819ac6fcd9b2eba X-Google-Attributes: gidfcd2b,public X-Google-Language: ENGLISH,ASCII Reply-To: "billaras1234" <billaras1234@hotmail.com> From: "billaras1234" <billaras1234@hotmail.com> Newsgroups: borland.public.cppbuilder.database.multi-tier References: <423ff302@newsgroups.borland.com> <424c78d6$1@newsgroups.borland.com> Subject: Re: datasnap access violation Date: Fri, 1 Apr 2005 13:34:17 +0300 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 195.251.45.43 Message-ID: <424d23a4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1112351652 195.251.45.43 (1 Apr 2005 02:34:12 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail