I have this problem where I want to use the new operator to create an array, and pass the constructors the same data. I've tried this
and thisCode:pThreads = new JpegThread[nThreadCount](cdnWaiting, nOriginalWidth, nOriginalHeight, nWidth, nHeight);
but nothing seems to appease the compiler. What am I doing wrong?Code:pThreads = new JpegThread(cdnWaiting, nOriginalWidth, nOriginalHeight, nWidth, nHeight)[nThreadCount];