#5 FB_StringBuffer Issue

1.0
open
aliazzz
None
2021-04-28
2021-04-21
peve
No

Hello aliazzz!

This 'XML parsing and composing library' is great.
I am using this library in a project where is needed to handle xml - strings.

I have faced a problem with the 'GVL_Param_XmlControl' buffer size. When I am composing (Login) the project on CODESYS something happens and a window named 'FB_StringBuffer.Prepend.Set[From XML parsing and composing library]' opens on CODESYS. This window is in the attachment.

Hopefully you can solve this problem or give me a tip how to solve the problem. It seems to be focused on 'FB_StringBuffer.Prepend.Set' method/function. And this is focused also in row 5 in the picture.

I was trying to change the size of 'GVL_Param_XmlControl' constant size. And a once I got the project working nicely. When I increased my project, so I made more xml coding there, I faced this problem again. This time increasing or decreasing the size of 'GVL_Param_XmlControl' constant value seems not to be solving the problem.

I am really happy if you are able to answer this ticket.

Best regards,
peve

1 Attachments

Discussion

  • peve

    peve - 2021-04-21

    and in addition a better picture of the issue

     
  • aliazzz

    aliazzz - 2021-04-22
    • private: Yes --> No
     
  • aliazzz

    aliazzz - 2021-04-22

    Hi,

    Thank you for your feedback and kind remarks. The version that is posted here is slightly older then the one found embedded within CfUnit v1.1. I suggest you download it and use that one.

    PS
    There is still a lot to be done on the parsing of XML so don't expect it to work properly.

    Regards

    Aliazzz

     

    Last edit: aliazzz 2021-04-22
  • peve

    peve - 2021-04-22

    Hi,

    Thank you Aliazzz about quickly answering.

    Yes I noticed that the version of CfUnit library is 0.9.1.0. I downloaded with success the CfUnit v1.1. But now the problem is that how to add this newer version in use under XML parsing and composing library?
    I tryed to link it to this library multiple times but not with success.

     
  • peve

    peve - 2021-04-23

    Hi Aliazzz,

    I got the CfUnit library linked to XML parsing and composing library with success.

    But the original problem showed up again. Do you have some further instructions to this problem, how to solve the buffer problem?

    Best regards and thanks a lot beforehand,
    peve

     
  • peve

    peve - 2021-04-26

    Hi Aliazzz,

    I got the issue totally solved.
    There was a bug due to mistake of mine.

    So this Issue can be closed.

    Thank about helping with the issue.

    PS

    I hope development of this Library will be continued in the future. This is good and useful library for CODESYS.

    Best regards,
    peve

     
    👍
    1
    • aliazzz

      aliazzz - 2021-04-26

      Thanks for the feedback.

      But for completeness, could you tell what your mistake is? This so that others can benefit from it.

      I hope to read your "mistake" and fix here soon ;-)
      PS without mistakes, there is nothing to be learned... how boring would that be?

      PS
      I can add you to the developers so you can add / debug new features if you wish. This is the power of open source. We all benefit this way.

       

      Last edit: aliazzz 2021-04-26
  • peve

    peve - 2021-04-28

    Ok. Firstly, I was made two instances of XmlControl.FB_XmlControl.
    Then in the code, the mistake was, the other instance was called two times. And the other was not called anytime. The outcome was that when pressing 'Login' button the Codesys opened the window named 'FB_StringBuffer.Prepend.Set[From XML parsing and composing library]'. That is what has been imagined on earlier in the ticket.

    The fix was, just calling the instances once, both of them. After that everything runs properly.

    PS
    Yes exactly, actually it is great when got some problem to be solved.

    And thank you. I am happy about that. I look forward to new features/bugs.

    Best regards,
    peve

     

Log in to post a comment.