HI,

i have a function that does a rsh into a remote machine and copy files from that remote machine to another machine using rcp. The function takes along time to finish if there are alot of files to copy or when an connection a refused.

I figured i might need to create a new thread to call my function so that it will not hindle the rest of the application. I tried creating a thread but it seems to be blocking the whole application till the rsh + rcp is done.

But i get a memory fault when i try to run my thread and the whole program crashes. Not sure if i am doing things right..any other alternative to my problem? thanks

Qt Code:
  1. P_Thread *pr_thread = new P_Thread;
  2. pr_thread->message(msg);
  3.  
  4. pr_thread->start();
To copy to clipboard, switch view to plain text mode