Hi Adam, > Could someone please tell me what the differences between the main thread > and a TThread are? There are 2 differences. 1. I/O (printf,...) could work properly only from main thread. Some machines have thread safe X11, but it is an exception 2. Cint commands can also work only for main thread. But anyway, threads used the same memory and clashes are possible. I think it is your case Victor Adam Jon DeGrush wrote: > > Hi Rooters, > > Could someone please tell me what the differences between the main thread > and a TThread are? > > Specifically, I am writing an EPICS server that handles slow controls, and > I would like to put all the polling of epics variables on a TThread. > Polling works fine from the main part of the program, but I get a > segmentation violation when I try to put it on a TThread. Is there > something that I should be looking for? > > Many Thanks, > Adam DeGrush > > I am running version 3.02.00 -- Victor M. Perevoztchikov perev@bnl.gov perev@vxcern.cern.ch Brookhaven National Laboratory MS 510A PO Box 5000 Upton NY 11973-5000 tel office : 631-344-7894; fax 631-344-4206; home 631-345-2690
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:10 MET