Hello,
I have a very big problem with Xojo. I use QuickOPC to use the OPC-DA/UA protocol. For a long time I was looking for the error why the programs hang after 2 days of running as soon as xojo uses the entire 64 GB of RAM. Now I have found the error. The memory that Xojo reserves for the OLE objects is no longer released and the RAM becomes full. What I found out is that it is not the QuickOPC Lib because I can use it in another programming language (Purebasic) without any problems and the memory is freed up again. I read in the forum itself that these problems with OLE have been discussed more often over the years and no solution has yet been found. Unfortunately I have to find a solution here at short notice, otherwise I would have to do the work and port the program to Purebasic.
Or am I just making a beginner’s mistake? When I use this code in a timer, the RAM fills up.
for i as integer = 1 to 10000
Dim Client As New OleObject ("OpcLabs.EasyOpc.UA.EasyUAClient")
Client = nil
next
I would be grateful for any tip.