Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing a remote object

Status
Not open for further replies.

estech25

Technical User
Jan 26, 2005
118
0
0
IR
I have two remote objects names Product and ProductDALC. ProductDALC is responsible for creating, updating and deleting products in DB. Both are marshalbyref and I am using remoting to work with them from the client side. I have a small server which is reponsible for taking care of these remote objects on server. On the client side, I create a Product object and assign values to its properties. I then want to call a method of the ProductDALC to store this new product data in DB. The method is CreateProd and I want to pass an instance of the Product to it this way on the client:

Dim SampleProd as new Product
'assign values to SapleProd properties
Dim MyProdDALC as new ProductDALC
MyProdDALC.CreateProd(SampleProd)

However, I notice that the SampleProd is being passed a null object. Why? Both objects are declared SingleCall
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top