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 "Microstation has stopped working".
Attached is the exception.log file and the screenshot of the error
Thanks for your help,
Salvio
7103.exception.log
Hi Salvio,
You likely will need to crash again setting MS_MINIDUMPTYPE=7.Can you provide the current memory dump until a full memory dump can be zipped and posted? Line 863: Wrote a mini-dump type 0x4 to "C:\TEMP\Bentley\MicroStation\10.0.0\MiniDump.dmp".Thank you,Bob
Hi Robert, the minidump is in attachment
Thank you,
SalvioMiniDump.rar
Hi Salvatore,
based on the file size, I guess it's not "type 7" minidump (but maybe I am wrong ;-).
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 this wiki article how to do it.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
I am not "exception analyses start" ;-) 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.
It'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.
What I remember, these issue can be cause by:
BTW Did you try to debug running MicroStation process from Visual Studio? When "catch all exceptions" is used, it should show where is the source of invalid API call (at least is should be in call stack list).