Let's say I have a class `MyClass` that contains a function that is really complex and slow `slowFunction()` that I want to be executed in another thread, for this I'm using **Qtconcurrent::run**, here is a snippet:

```
void MyClass::startAnalysis() {
     //Run slowFunction in another thread
     QtConcurrent::run(this, &MyClass::slowFunction);
}

void MyClass:slowFunction() {
     for(int i = 0; i < 100; i++) {
         qDebug() << this << i;
     }
}

```

The main problem that I'm facing is if `slowFunction()` performs any operation over a member variable of `MyClass` I get (eventually) a crash. Also, as in the code above, when I try to output the pointer `this` I also get a crash!.

Is there anything wrong with modifying member variables inside a function executed by QtConcurrent::run ?