Skip to content

App crashes with Exc_Bad_Access #4

@polyclick

Description

@polyclick

My app crashes when Ableton is already playing and one of the first update cycles comes through.

    if (parameter > 0 && tracks.count(track) != 0 && tracks[track]->getDevices().count(device)) {
        tracks[track]->getDevices()[device]->getParameterGroup()->getFloat(parameter).set(m.getArgAsFloat(3));
    }

I get an error on this line: tracks[track]->getDevices()[device]->getParameterGroup()->getFloat(parameter).set(m.getArgAsFloat(3)); in void ofxAbletonLive::processParameterUpdate(ofxOscMessage &m)

Maybe this is as easy as doing some extra checks but since I'm only a novice cpp dev, it's hard to figure it out myself :p

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions