HighResolutionTimer pure virtual called


#1
class Inkling : HighResolutionTimer
{
public:
    Inkling() {
        :
        startTimer(10/*ms*/);
    }
    
    void hiResTimerCallback() final {...}

    ~Inkling() {...}
};

class MainContentComponent   : public AudioAppComponent
{
private:
    Inkling inkling;
:
}

… caused:

Not a problem, so 0 importance/priority, just flagging it in case there is some bug. Looks like it’s invoking the callback after the object has been destructed… maybe needs if (owner != nullptr) ...? (EDIT: hmm but owner is not nullptr).

π


#2

Could it be that you’re starting the timer in the constructor?


#3

Yes, either a linking problem (i.e. you are linking to old binaries - try cleaning your project) or you are calling startTimer in a base class constructor where hiResTimerCallback isn’t overridden.