Ansys Learning Forum › Forums › Discuss Simulation › Embedded Software › Access Violation › Reply To: Access Violation
October 23, 2024 at 9:17 am
Romain Andrieux
Ansys Employee
Hello,
Â
In your situation, you are using format string "%d" which will read an int; however numActual is of type kcg_int8 which is by default a 'char', causing an Access Violation (since you are trying to write 32bits into 8bits) when perfoming the fscanf. To fix it you can change the string formating to "%c".Â
Hope this helps.
Â
Best Regards
Romain