Hi, I'm sorry, but no... I don't have a sample project at the moment. I'm not even really an expert with the CharBufferString... π’
Attached a tentative solution for the problem, patch for the FB_AssertResultStatic.ReportResult method, based on what's implemented in FB_AssertArrayResultStatic.ReportResult.
FB_AssertResultStatic.ReportResult - PLC Crash
Since version 3.5.2.0, as stated in the documentation, categories can be enumarated through python code. To get all the GUIDs: system.get_message_categories(bActive=False) Set bActive = True to get only the categories that contain at least one message. To get a description for each category: system.get_message_category_description(category) where category is the GUID of the category to look for. See: https://help.codesys.com/webapp/System;product=ScriptEngine;version=3.5.13.0
Same question here... From my tests it seems also that if I try to fill the queue it gives the "Max size exceeded" error with the exact size of the array. So it seems that there is no need to have an underlying array 2 times the max size, but I'm concerned with possible memory overflows...
Hello, I can't find a way to initialize a CharBufferString from a WString. I've done something similar for a STRING: Declaration: astring : STRING(1000); cbs : Stu.CharBufferString(uiBufferSize:=2000, stringType:=__SYSTEM.TYPE_CLASS.TYPE_STRING); pst : POINTER TO STRING; Code: astring:='... a very long string ...'; cbs.FromString(astring); pst := cbs.m_cbpBuffer; But I can't find a "FromString" method that takes a WSTRING. Any idea? Thanks in advance.
I have the exact same question. Does a documentation exist for these functions? I've found documentation for LogAdd2, but not for CMAddComponent and CMAddComponent2, and in particular for all the functions of the "Component Manager" library. Any hints? Thanks in advance.