Connection problem on CtAPI.dll with a VB.net application on Citect 2018 R2

I have a VB.Net application that worked very well on Citect 2018 R1 with an CtAPI connection, after migration on Citect 2018 R2 it doesn't work anymore!
Should the code be changed?

Thank you in advance for your help !