Exception access violation

blitz
2021-08-29
2021-09-02
  • blitz - 2021-08-29

    Hello,
    I have a problem with the errors "exception access violation" and "sourceposition".

    I have an FB_REST_API which has a Query method in which fbBasicAuthWebClient is called. This part works.
    Then I have an FB_MiR_Fleet_Comm which inherits from FB_REST_API. In FB_MiR_Fleet_Comm I create the Test1 method in which I call Query and errors appear here.

    Generally removing things from Test1 at some point the problem disappears, but based on that I am not able to deduce what is the problem :(

    FB1: FB_REST_API
    Query (fbBasicAuthWebClient called inside)

    FB2: FB_MiR_Fleet_Comm EXTENDS FB_REST_API
    Test1 (Query called inside)

     
    πŸ‘
    2

    Last edit: blitz 2021-09-06
  • TimvH

    TimvH - 2021-09-01

    I tried to understand what you are trying to do, but you seem to make it much more complex then needed. Why not just have 2 instances of the fbBasicAuthWebClient and call this when needed.

     
    • blitz - 2021-09-02

      My idea was to create a simple interface for communication with devices via REST API. I wanted to create one general purpose function block for REST API communication, and then create function blocks that will inherit from the general one and contain methods for querying individual endpoints - for communication with specific devices from manufacturers. The intention was a minimum of parameterization.

      Basically I managed to execute the plan, but the methods are in the general FB_REST_API function block (one super function block) and I wish they were in separate FB_Device_Comm.

       

Log in to post a comment.