Is there a way to prevent the Garbage collector from running on one particular object? Something like:

int* CreatePermanentInt() {
    int i = 5;
    return &i;
}

And i wouldn't be collected after this.

Reply via email to