<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>[CONNECT] - Microstation has stopped working</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/198338/connect---microstation-has-stopped-working</link><description>Hi everyone, 
 I have the following problem: I have developed an AddIn, in c #, for Microstation Connect version 12, 
 the problem is that, in a completely random way, Microstation crashes and shows the message &amp;quot;Microstation has stopped working&amp;quot;. 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: [CONNECT] - Microstation has stopped working</title><link>https://communities.bentley.com/thread/596488?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 11:53:49 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:e86ff846-fdf8-4653-9c38-8a35eea30271</guid><dc:creator>Robert Hook</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/675f9299_2d00_96a2_2d00_4325_2d00_8447_2d00_998bb57175f9"&gt;salvatore montella&lt;/a&gt;,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Can you please set &lt;strong&gt;MS_MINIDUMPTYPE=7&lt;/strong&gt; at the OS System environment variables; necessary for .NET exceptions to produce a full memory dump; then rename/disable the variable after creation of a full memory dump file?&amp;nbsp; For more details on how to set the variable and collect exception history logs, please see: &lt;a href="/products/microstation/w/microstation__wiki/10396/generate-type-7-minidump-files"&gt;Generate Type-7 minimdump files&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Can you provide a &lt;strong&gt;&lt;a href="/products/programming/w/wiki/41299/abbreviations-acronyms-definitions#TestCase" rel="noopener noreferrer" target="_blank"&gt;test case&lt;/a&gt;&lt;/strong&gt; that &lt;a href="/products/programming/microstation_programming/f/microstation-programming---forum/198338/connect---microstation-has-stopped-working/591282#591282"&gt;development has requested&lt;/a&gt;?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Both these items are essential to provide to identify what is going wrong in your code and provide recommendations to fix the problem(s).&lt;/p&gt;
&lt;p&gt;Thank you in advance,&lt;br /&gt;Bob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [CONNECT] - Microstation has stopped working</title><link>https://communities.bentley.com/thread/594421?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 09:18:19 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fe85483a-a2c4-4521-af7b-f14c68cc98b0</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Salvatore,&lt;/p&gt;
[quote userid="1009364" url="~/products/programming/microstation_programming/f/microstation-programming---forum/198338/connect---microstation-has-stopped-working/594417"]In attachments other minidump&amp;nbsp;[/quote]
&lt;p&gt;I am afraid that until better memory dump is provided, nothing investigated.&lt;/p&gt;
&lt;p&gt;In my earlier answer I provided link to wiki with description how to create full memory dump, including managed heap.&lt;/p&gt;
&lt;p&gt;Because you mentioned you developed C# addin, so I assume you are developer. Based on that I think it&amp;#39;s clear it&amp;#39;s not possible to analyze C# addin crash, when the provided data is only minidump without MicroStation page heap.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s written clearly in the wiki:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;To trouble shoot Managed Exception from .NET and Heap corruptions, 
we would require a Type 7 (Full Dump) with Page Heap.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [CONNECT] - Microstation has stopped working</title><link>https://communities.bentley.com/thread/594417?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 09:05:16 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:985a6232-51a9-47b3-96f1-fc8b1e56141e</guid><dc:creator>salvatore montella</dc:creator><description>&lt;p&gt;In attachments other minidump&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://communities.bentley.com/cfs-file/__key/communityserver-discussions-components-files/343173/ExceptionHistory.zip"&gt;communities.bentley.com/.../ExceptionHistory.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [CONNECT] - Microstation has stopped working</title><link>https://communities.bentley.com/thread/591282?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 14:12:29 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2a29c8e5-82e6-429d-8edd-530a350e4632</guid><dc:creator>Mangesh.Shelar</dc:creator><description>&lt;p&gt;Also, can you share small add-in c# project to simulate this issue at our end?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [CONNECT] - Microstation has stopped working</title><link>https://communities.bentley.com/thread/591220?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 09:13:45 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:4834f079-6a82-4235-bf93-3f40fd1d946b</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Salvatore,&lt;/p&gt;
&lt;p&gt;I am not &amp;quot;exception analyses start&amp;quot; ;-) so the only things I was able to understand from provided mini dump using (great) WinDbg Preview application (available in Microsoft Store for free, or older version in every Visual Studio / Windows SDK installation) is that the crash is caused by access violation exception in PowerPlatform dll.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s hard to guess where the problem can be. To create full dump including heap can provide some extra information. You also did not share ExceptionLog, which also contains useful information.&lt;/p&gt;
&lt;p&gt;What I remember, these issue can be cause by:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wrong code, like to pass not valid anymore instance (e.g. element removed from design file in a meantime) to some method, which ends with exception (invalid memory, wrong pointer...) deep inside PowerPlatform engine.&lt;br /&gt;Without knowing your code, how it&amp;#39;s structured and what classes are used, it&amp;#39;s hard to guess. I recommend to check whether all IDisposable objects are properly disposed as soon as possible etc.&lt;/li&gt;
&lt;li&gt;In some cases it can be caused also by corrupted DGN file (but it can be tested that application works fine with other files).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;BTW Did you try to debug running MicroStation process from Visual Studio? When &amp;quot;catch all exceptions&amp;quot; is used, it should show where is the source of invalid API call (at least is should be in call stack list).&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [CONNECT] - Microstation has stopped working</title><link>https://communities.bentley.com/thread/591200?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 08:04:15 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c8eb208e-f8bd-4d70-9a4b-2943303c7d9e</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Salvatore,&lt;/p&gt;
&lt;p&gt;based on the file size, I guess it&amp;#39;s not &amp;quot;type 7&amp;quot; minidump (but maybe I am wrong ;-).&lt;/p&gt;
&lt;p&gt;It think when MS_MINIDUMPTYPE=7 is set, the full dump should be created, which I assume will produce much bigger file. Also, because NET application is involved, you should also configure to include Page Heap also. See &lt;a href="/products/microstation/w/microstation__wiki/39038/generate-type-7-minidump-with-page-heap" rel="noopener noreferrer" target="_blank"&gt;this wiki article&lt;/a&gt; how to do it.&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [CONNECT] - Microstation has stopped working</title><link>https://communities.bentley.com/thread/591183?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 07:41:25 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:52ca7d73-da77-4669-8db6-67790ed77865</guid><dc:creator>salvatore montella</dc:creator><description>&lt;p&gt;Hi Robert, the minidump is in attachment&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Salvio&lt;a href="https://communities.bentley.com/cfs-file/__key/communityserver-discussions-components-files/343173/MiniDump.rar"&gt;communities.bentley.com/.../MiniDump.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [CONNECT] - Microstation has stopped working</title><link>https://communities.bentley.com/thread/591023?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 15:38:02 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0cbe982b-2c9d-4f93-8d68-0e919b98d3cd</guid><dc:creator>Robert Hook</dc:creator><description>&lt;p&gt;Hi Salvio,&lt;/p&gt;
&lt;p&gt;You likely will need to crash again setting MS_MINIDUMPTYPE=7.&lt;br /&gt;&lt;br /&gt;Can you provide the current memory dump until a full memory dump can be zipped and posted?&lt;br /&gt;&lt;span&gt; &lt;/span&gt;Line 863: Wrote a mini-dump type 0x4 to &amp;quot;C:\TEMP\Bentley\MicroStation\10.0.0\MiniDump.dmp&amp;quot;.&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;Bob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [CONNECT] - Microstation has stopped working</title><link>https://communities.bentley.com/thread/591021?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 15:36:30 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:cef9c7c7-6b87-4f2d-836b-fd4f11312856</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="1009364" url="~/products/programming/microstation_programming/f/microstation-programming---forum/198338/connect---microstation-has-stopped-working"]I have developed an AddIn, in c #, for Microstation Connect version 1[/quote]
&lt;p&gt;Have you tried using Viz Studio&amp;#39;s &lt;em&gt;debug&lt;/em&gt; tools?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>