[CONNECT C#] CreateCellElement1 AddElements Arrays causes .NET application to crash

Hello,

I am working on OpenCities Map Enterprise CONNECT Edition Update 6 Version 10.06.01.02.

I am having issues with these two functions, CreateCellElement1 and AddElements. When passing the arrays of elements the application throws an error.

Ex.Message

Invalid callee. (Exception from HRESULT: 0x80020010 (DISP_E_BADCALLEE))

Ex.Source

Bentley.Interop.MicroStationDGN

Ex.StackTrace

   at Bentley.Interop.MicroStationDGN.Application.CreateCellElement1(String Name, Element[]& Elements, Point3d& Origin, Boolean IsPointCell)

Originally had this application running on MicroStation v8i. I use these two functions to draw the elements in groups. After converting to OpenCities and swapping out all the dlls the application throws an error on these two functions. I am able to draw each element individually without any issues. The strange thing is sometimes the functions executes properly, however most of the time they do not. I am using .NET Framework 4.7.2.

Any assistance or guidance would be greatly appreciated. Thank you.