Thanks to reply so fast i’m new of c++ i was usefull of c# there weren’t pointers. i’ve to go a bit back, i think the problem is were i’m inizializing the FouTrasf class.
hi reduk, i inzialized the variable as you told me calling juce::ThreadPoolJob pooljob(const juce::String& name = “FouTraThread”); but the generated body called by the call runjob() tells me in italian that the function is not allowed beacose is a virtual function. I readed that virtual function are function with empty body but here not goes what thread has to do?
You’re returning an instance of ThreadPoolJob, which is abstract because of the pure-virtual member runJob.
You should probably return a (smart) pointer-to-ThreadPoolJob instead, and then return an instance of your type (FouTrasf) that derives from ThreadPoolJob.
But this part is generated by visual studio after inizialization i didn’t wrote it so make me a bit confused and more beacouse i didn’t find some tutorial about threadpool in juce