Jamesrye Posted February 15, 2004 Posted February 15, 2004 Hello all, thanks for looking in. I seems to me after an extensive anount of looking about that I can't make remoting usefull. Clearly I am missing something here.... All the applications that I can find load a host, that host has objects and functions, even verables. but here is the kicker, I can't seem to get the object to read any of the host's verables. Say for example the host application is a form based application that holds information in a data view. I can't work out how to get the code that is the class object being loaded to be able to reference this DV. I am inviting you all to make me feel silly and tell me where I am going wrong. Thanks James Quote
Moderators Robby Posted February 15, 2004 Moderators Posted February 15, 2004 Check out 101 vb.net samples http://msdn.microsoft.com/vbasic/downloads/samples/default.aspx There is a sample or two on remoting. Quote Visit...Bassic Software
Jamesrye Posted February 15, 2004 Author Posted February 15, 2004 Thanks for the response. But I find these examples load objects from a dll file. The opjects in the DLL file are what handel the incoming request. I am able to hold values inside of the dll, but that dll is not able to colect information from the application (server/host) that has loaded it. I want to write an application that receives information from external hardware. clearly this would need to be done outside of that object but could with ease be handled in the host application. In short I would like to know how to get the server side object to be able to use public verables that are difined by the form or module that loads the remoting setup that forms the host. I hope I have made that clear, please let me know if you are unsure of what I mean. Thanks again James Quote
Moderators Robby Posted February 15, 2004 Moderators Posted February 15, 2004 Are you talking about Client Activated Remoting? If so then search VS help for "Client Activated Remoting". Also look here ....http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html/ImpBrokerClient.asp Quote Visit...Bassic Software
Jamesrye Posted February 15, 2004 Author Posted February 15, 2004 Getting closer, but still not able to preform what I need. You see, the client activated object is able to preform function on the server like getting information from a DB, but this would mean that I would need to write the servers values to the db and then read them. I just want to be able to read them strait from the object. Any more ideas? Quote
Moderators Robby Posted February 16, 2004 Moderators Posted February 16, 2004 Are you not filling the object with data from the DB whilst at the server? Quote Visit...Bassic Software
Jamesrye Posted February 17, 2004 Author Posted February 17, 2004 Not realy. I am it is reading values from a DV that is backed up to a DB every five min. But the information I am getting a hold of is held in a DV. I have managed to find a way to do it. I am just checking it out now. If it is ideal I will send you a discription of what I have done. You might find it interesting. Cheers James Quote
Jamesrye Posted February 25, 2004 Author Posted February 25, 2004 Hello again While I have the program working fantasticaly on a local machine, when I run it over the internet it runs so slow it is basicaly un usable. I supose it would have been a good idea to ask the question at the beging, "how fast is remoting" I am finding that with two machines both on adsl conections, there seems to be at least a one second delay between any request, even if it is just requesting a simple function with no calculation at the server end. Do you have any sugestions? Thanks James Quote
Jamesrye Posted February 25, 2004 Author Posted February 25, 2004 When ever you post a message on here there is always the chance you make a fool of yourself to everyone.... Turns out that remoting is super fast. My problem is that I was pasing the server a fixed length string. It was HUGE! and completly un needed, on a local machine it could handle it with ease, but it showed up over the net. Problem fixed, thanks again James Quote
Moderators Robby Posted February 25, 2004 Moderators Posted February 25, 2004 I'm glad it worked out. You didn't make a fool of yourself, it was just an overlooked item that you now learned from. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.