Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

access violation 81

pethun
2021-02-09
2021-02-11
  • pethun - 2021-02-09

    Hi, I have an application which using the AC_DataLogManager function to create csv file. After about 24h running I get following error:
    2021-02-09T13:04:04Z, 0x00000011, 8, 81, 3, #### Exception: EXCEPTION [<excpt>AccessViolation</excpt>] occurred: App=[<app>Application</app>], Task=[<task>DataLogHighTask</task>]
    2021-02-09T13:04:04Z, 0x00000011, 8, 81, 3, #### Exception: SOURCEPOSITION App=[<app>Application</app>] area=3, offset=<off>2413856</off>

    Is there anyone who can give me a hint what the causing the error?
    I do beleive there is some kind of timing error?

    Please any help highly appreciated.

     
  • Morberis

    Morberis - 2021-02-09

    A few suggestions, sorry if you've tried them already. But also when it does error, what size is the csv file?

    -Try changing your task priorities so that nothing else is above the datalog high task.
    -Try extending the task time
    -Try increasing the buffer size.

     

    Last edit: Morberis 2021-02-09
    • pethun - 2021-02-10

      Thanks for your answer Morberis
      I've extended the tasktime and then it seems to be running but I've received buffer full messages/warning. I will increase the buffer size from 40000 up to 50000 and see what happens.
      Would be nice to understand whats causing the problem?

       
  • eschwellinger

    eschwellinger - 2021-02-09

    Hi,
    if you rightclick in the plc logger to these lines:
    2021-02-09T13:04:04Z, 0x00000011, 8, 81, 3, #### Exception: EXCEPTION [<excpt>AccessViolation</excpt>] occurred: App=[<app>Application</app>], Task=[<task>DataLogHighTask</task>]
    You should get info where it happens in the code.
    Even if it is in a library...

     
    • pethun - 2021-02-10

      Thanks for answer eschwellinger!
      I tried to right click in the plc logger online but didn't get any messages or nothing?

       
  • eschwellinger

    eschwellinger - 2021-02-10

    Add the project to Check...

     
    • pethun - 2021-02-11

      Still I dont understand? Maybe you cold send a link or something so I could investigate?

       
  • eschwellinger

    eschwellinger - 2021-02-11

    if you think this is a bug -> send to projectarchive to CODESYS Store -> my questions - bugreport - to investigate

     

Log in to post a comment.