<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Debugging in mixed mode (.NET/CLR/Native) and asserts in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/debugging-in-mixed-mode-net-clr-native-and-asserts/m-p/12225178#M1456</link>
    <description>&lt;P&gt;I can replicate this at my end, it stalls debugger. I will keep you posted.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2023 16:04:02 GMT</pubDate>
    <dc:creator>moogalm</dc:creator>
    <dc:date>2023-09-07T16:04:02Z</dc:date>
    <item>
      <title>Debugging in mixed mode (.NET/CLR/Native) and asserts</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/debugging-in-mixed-mode-net-clr-native-and-asserts/m-p/12224153#M1453</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm experiencing issues while debugging our application and some assert fails.&lt;/P&gt;&lt;P&gt;(For instance when triggering assertWriteEnabled() on an object only opened for kForRead.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I'm having is that the assert window never appears on the AutoCAD screen, and at the same time everything just completely hangs. It's not possible to break or exit the debugger process from Visual Studio or AutoCAD, and the call stack is empty. The only way out is to kill acad.exe through the Windows task manager.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue does not occur while debugging in pure managed mode, and also if I set my ObjectArx project as startup and debug in pure native mode, it works as expected. It's only when using a .NET project as startup with "Enable native code debugging" activated that this problem occurs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visual Studio 2022 (17.7.0), AutoCAD 2023 / 2024.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does any one else experience the same problem, or have found a solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Øystein Wiger&lt;/P&gt;&lt;P&gt;Focus Software AS&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 09:52:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/debugging-in-mixed-mode-net-clr-native-and-asserts/m-p/12224153#M1453</guid>
      <dc:creator>OysteinW</dc:creator>
      <dc:date>2023-09-07T09:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in mixed mode (.NET/CLR/Native) and asserts</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/debugging-in-mixed-mode-net-clr-native-and-asserts/m-p/12224288#M1454</link>
      <description>&lt;P&gt;Is it possible to create a simple repro project, do you see this problem on poly sample, or maybe you can use that as reference point, btw Poly sample is part of ObjectARX SDK [D:\Work\ArxSdks\ObjectARX2024\samples\entity\polysamp]&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 10:57:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/debugging-in-mixed-mode-net-clr-native-and-asserts/m-p/12224288#M1454</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2023-09-07T10:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in mixed mode (.NET/CLR/Native) and asserts</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/debugging-in-mixed-mode-net-clr-native-and-asserts/m-p/12224388#M1455</link>
      <description>&lt;P&gt;Ok, sure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've added a little snippet to&amp;nbsp;mgPolyTestApp Class1.vb that shows the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OysteinW_0-1694086545798.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1263421i1DA906144042F09D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OysteinW_0-1694086545798.png" alt="OysteinW_0-1694086545798.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I added the output folder to my support files path, and loaded adskpolyui.arx like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OysteinW_1-1694086562223.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1263422i56A017EC5BCA2650/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OysteinW_1-1694086562223.png" alt="OysteinW_1-1694086562223.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I then loaded the mgPolyTestVb project manually using NETLOAD and ran the "TestCreate" command.&lt;/P&gt;&lt;P&gt;-Problem occurs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My modified polysamp is attached in the zip file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for investigating!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Øystein Wiger&lt;/P&gt;&lt;P&gt;Focus Software AS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 11:43:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/debugging-in-mixed-mode-net-clr-native-and-asserts/m-p/12224388#M1455</guid>
      <dc:creator>OysteinW</dc:creator>
      <dc:date>2023-09-07T11:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in mixed mode (.NET/CLR/Native) and asserts</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/debugging-in-mixed-mode-net-clr-native-and-asserts/m-p/12225178#M1456</link>
      <description>&lt;P&gt;I can replicate this at my end, it stalls debugger. I will keep you posted.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 16:04:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/debugging-in-mixed-mode-net-clr-native-and-asserts/m-p/12225178#M1456</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2023-09-07T16:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in mixed mode (.NET/CLR/Native) and asserts</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/debugging-in-mixed-mode-net-clr-native-and-asserts/m-p/12226321#M1457</link>
      <description>&lt;P&gt;Great, thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Øystein Wiger&lt;/P&gt;&lt;P&gt;Focus Software AS&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 04:13:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/debugging-in-mixed-mode-net-clr-native-and-asserts/m-p/12226321#M1457</guid>
      <dc:creator>OysteinW</dc:creator>
      <dc:date>2023-09-08T04:13:35Z</dc:date>
    </item>
  </channel>
</rss>

