-1

I am using Ctypes in Python to run C code within my Python program. I am calling one of my functions and am getting this error:

OSError: exception: access violation reading 0x000001FB69B12000

I would also like to elaborate that the memory address changes with each run.

I have looked at other posts about similar issues but it seems that it is usually a writing access violation where the programer failed to give allocate enough memory to a variable and most of the people with reading errors are not even using Ctypes.

I was expecting that I was pottentially running into data that had not yet been written but the reason I am confused is that when I run the same code in a seperate all C program the code runs perfectly fine.

I would prefferably not share the code I am currently working on. If anyone can help thank you.

Tyler
  • 1
  • [\[SO\]: Welcome to Stack Overflow](https://stackoverflow.com/tour). Check [\[SO\]: How do I ask a good question?](https://stackoverflow.com/help/how-to-ask) or **[\[SO\]: How to create a Minimal, Reproducible Example (reprex (mcve))](https://stackoverflow.com/help/minimal-reproducible-example)** for more asking related details. As for your error, looks similar to [\[SO\]: C function called from Python via ctypes returns incorrect value (@CristiFati's answer)](https://stackoverflow.com/a/58611011/4788546), but can't say more without seing the code. – CristiFati Aug 18 '23 at 12:49

0 Answers0