I am having issues with threads. I am trying to make a thread for my downloader function but for some reason it is giving segmentation fault. Below are the lines of code that are giving me this issue. Can idea why this is happening???
string* Pages = new string[BufferSize]; //BufferSize is 10
thread* Downloaderthreads = new thread[DownloaderThreadsNumber]; //DownloaderthreadsNumber = 1
Downloaderthreads = thread(downloader,Pages,BufferSize,0);
//downloader(Pages,BufferSize,0); This function call works for me!!!!