Memory Permission Error 03802604

Hi, I’m getting a memory permission error and I don’t know what’s causing it. The only changes we’ve made is adding a pneumatic function and commenting out a sensor line, and I’m not sure why either of those would cause an error. It is number 038002604. I’ve attached a file with our code.

v5.zip (33.3 KB)

Memory permission errors are from bad pointers. The program seems fine and doesn’t have any pointers. My only help for this would be to reset your code to the closest approximation of what it was. After that, you can then slowly re-add everything that your current code has and find where the problem is.

see this.

This is causing the same issue, using Brain.ThreeWirePort before Brain it is instantiated.

pneumatics pneu = pneumatics(Brain.ThreeWirePort.H);
4 Likes