Memory leak CefSharp

Memory leak CefSharp

guillaume.cassin2GQKV
Explorer Explorer
360 Views
1 Reply
Message 1 of 2

Memory leak CefSharp

guillaume.cassin2GQKV
Explorer
Explorer

Hello,

 

We are trying to import thousands of Blocks inside AutoCAD 2023 using CefSharp.

If everything working well for one hundred of blocks, we are experiencing memory trouble for several hundreds of blocks:

System.AccessViolationException: 'Attempted to read or write protected memory. This often indicates that other memory is corrupt. 

The user fire a event on click on a button inside a Web App in React.

The connection between the React web app and .Net AutoCAD API is performed with CefSharp.

The issue happened in:

private void OnBrowserJavascriptMessageReceived(object sender, JavascriptMessageReceivedEventArgs e)

 

Thank you for your help.

 

0 Likes
361 Views
1 Reply
Reply (1)
Message 2 of 2

daniel_cadext
Advisor
Advisor

you'll need to provide more information, a stacktrace or something to find the origin of the exception

 

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
0 Likes