[CONNECT] - Microstation has stopped working

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

Parents Reply
  • Hi Salvatore,

    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:

    • 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.
      Without knowing your code, how it's structured and what classes are used, it's hard to guess. I recommend to check whether all IDisposable objects are properly disposed as soon as possible etc.
    • In some cases it can be caused also by corrupted DGN file (but it can be tested that application works fine with other files).

    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).

    With regards,

      Jan

Children
No Data