473,320 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Distributed GC And Remoting (Urgent)


Hi All;

In an application, I have lots of dummy forms without db connection and one
server that have connection pooling. Client forms will be used by tens of
users.

Dummy forms connect to the server via tcpChannel and request a bussiness
logic job
to be done like insert database, select from database into Dataset, select
into dataview etc.

I use TcpChannel and Activator class to make remote call to Server's
functions
from client and server returns me some objects like dataset, etc.. in return
of my calls.

the problem is that I dont know how long this objects will remain in memory
of
server and how log I can reference them from client.

is .net GC clever enough to understand that dataset is referenced by a
client
and must remain in memory, or it has no referances and must be deleted ?.

Can anybody help me about this topic. (an example, article etc. accepted)
Or comment on my architect (I am new at .net, and I am not sure whether
my distributed architect will cause trouble about GC in the future) ?

Helps'll be appreciated.


Nov 15 '05 #1
2 1160
Ahmet,

If your remote objects are returning a dataset to you, then remember that a
dataset is a disconnected set of data meaning that the object is over on the
client side. The server doesn't know about it.

On your remote objects, are you using 'SingleCall' or 'Singleton'? When you
use SingleCall, as soon as you complete your call to the remote object
function, that object has completed its use and will be gc later.

When you say the server returns some objects, do you mean serializable
objects? Again, if these objects are serializable, once you have them on the
client side (after the successful call to the remote object), the server
knows nothing about them, they are on the client side now.

STom
"Ahmet AKGUN" <ak*********@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...

Hi All;

In an application, I have lots of dummy forms without db connection and one server that have connection pooling. Client forms will be used by tens of
users.

Dummy forms connect to the server via tcpChannel and request a bussiness
logic job
to be done like insert database, select from database into Dataset, select
into dataview etc.

I use TcpChannel and Activator class to make remote call to Server's
functions
from client and server returns me some objects like dataset, etc.. in return of my calls.

the problem is that I dont know how long this objects will remain in memory of
server and how log I can reference them from client.

is .net GC clever enough to understand that dataset is referenced by a
client
and must remain in memory, or it has no referances and must be deleted ?.

Can anybody help me about this topic. (an example, article etc. accepted)
Or comment on my architect (I am new at .net, and I am not sure whether
my distributed architect will cause trouble about GC in the future) ?

Helps'll be appreciated.

Nov 15 '05 #2

All of my bussiness logic classes are derived from MarshalByRef.
And dataset created is on server side, it is not in client side.
On client, I have a referance to dataset.

and I am not sure whether I can dispose the dataset created on client code
or not.
Or when dataset will be gc.collect()'ed on server because client must know
about this.

regards.

"STom" <st***********@hotmail.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Ahmet,

If your remote objects are returning a dataset to you, then remember that a dataset is a disconnected set of data meaning that the object is over on the client side. The server doesn't know about it.

On your remote objects, are you using 'SingleCall' or 'Singleton'? When you use SingleCall, as soon as you complete your call to the remote object
function, that object has completed its use and will be gc later.

When you say the server returns some objects, do you mean serializable
objects? Again, if these objects are serializable, once you have them on the client side (after the successful call to the remote object), the server
knows nothing about them, they are on the client side now.

STom
"Ahmet AKGUN" <ak*********@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...

Hi All;

In an application, I have lots of dummy forms without db connection and

one
server that have connection pooling. Client forms will be used by tens of users.

Dummy forms connect to the server via tcpChannel and request a bussiness
logic job
to be done like insert database, select from database into Dataset, select into dataview etc.

I use TcpChannel and Activator class to make remote call to Server's
functions
from client and server returns me some objects like dataset, etc.. in

return
of my calls.

the problem is that I dont know how long this objects will remain in

memory
of
server and how log I can reference them from client.

is .net GC clever enough to understand that dataset is referenced by a
client
and must remain in memory, or it has no referances and must be deleted ?.
Can anybody help me about this topic. (an example, article etc. accepted) Or comment on my architect (I am new at .net, and I am not sure whether
my distributed architect will cause trouble about GC in the future) ?

Helps'll be appreciated.


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Linesh Gajera | last post by:
Hi, I have unique problem. I have configured RemotingServer running as Console Application and my Remoting object access Oracle database. My remoting object make call to Oracle database and...
0
by: DotNetJunkies User | last post by:
I am writing a distributed transaction code. My current scenario include a client database(Suppose client- having 4 main database) which can be installed anywhere which would connect to a public...
0
by: Henrik Nordgren | last post by:
Im trying to build a simple chat app... here is the code: server visual basic code:-------------------------------------------------------------------------------- Public Class ChatServer ...
3
by: Joris Dobbelsteen | last post by:
Dear, I have some considerations I need to take designing a distributed application (it's for a school project). Basically I'm looking for some reference or guidiance material/literature and...
6
by: Catherine Jones | last post by:
Hi all, we need urgent help in a matter. We are trying to pass a COM object from the client to server and are facing some problems in the same. We've our client in C# as well as the Server...
11
by: jason | last post by:
we have developed a .NET class library that defines a family of reusable business objects. the class library is developed in C#, and works quite well. one problem, however, is that as more and...
3
by: Michel Smit | last post by:
I'm running into another problem with my component. I'm trying to use .NET remoting to avoid complex firewall issues. I have a webserver which is the client machine and a database server which...
5
by: ask ksa | last post by:
hi, is anybody familiar with production-ready distributed/clustered cache solution for .net ? Google helped me to found some (like ncache and scale-out-state-server), but they are over-priced ...
4
by: JB | last post by:
Hi All, I need to write my first "distributed" application and due to my lack of knowledge and experience in that area, I'm stuck on the first big design decision. Reading a lot on distributed...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.