I'm new to VB network programming (I'm currently using VS 2008). I'm developing an application to capture videos from a ccd camera and save them in Avi files. The parameters, e.g., number of frames and the Avi file name, are sent in from another computer. I started by creating a tcp/ip server program on the machine that controls the camera, and a tcp/ip client on the machine that send in the parameters. I've gotten them communicating okay. Next I tried to include the video functions in the server program, and invoke the functions when there are parameters coming in from the client. Here I ran into problems - the server program hangs.

My intuition tells me that the tcp/ip server and the video functions should be in separate processes. I've seen the terms of threads, delegation, remoting. I need advice on what techniques to use in my situation. Code examples would be particularly helpful. Thanks.