[ORD SDK] Need both VS2015 & VS2017 to get buildallexamples to work?

Hi all,

I've had issues getting the ORD SDK Examples to build in the SDK Developer Shell with Visual Studio 2017, getting unhandled exception errors in the bmake utility:

Once I installed Visual Studio 2015 as well it built all examples fine, although there were errors to do with long paths.

Interestingly, I tested with VS2015 only (with VS2017 uninstalled) and it ran into other errors (eg. framework). I found a similar post here: https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/176567/microstationsdk-update12---vs2017-professional/523338

Is there something wrong with my setup or an issue with the SDK? This also seems to be happening to some of my colleagues.

Regards,

Mark

  • Mark, make sure you have the .NET Framework 4.6.2 Development Tools installed with your Visual Studio.

  • Also, you should be able to build and run the SDK examples with only VS2017 as long as you have the NET Framework 4.6.2 Development Tools installed.

  • Hi Barry,

    I have 4.6.2 .NET Framework installed and it builds fine in VS2017, but still no luck using buildallexamples in the ORD development shell (same unhandled exception error) unfortunately.

    
    [Windows]
    
      Microsoft Windows 10.0.17763.737 (64-bit), Command Shell (64-bit), Elevated
    
    [Command Line]
    
      "C:\Windows\System32\cmd.exe" /x /k ""C:\Program Files\Bentley\OpenRoadsDesignerCONNECTSDK\OpenRoadsDesignerDeveloperShell.bat" "C:\Program Files\Bentley\OpenRoads Designer CONNECT Edition\OpenRoadsDesigner\" "C:\Program Files\Bentley\OpenRoadsDesignerCONNECTSDK\""
    
      Arg: C:\PROGRA~1\Bentley\OpenRoads Designer CONNECT Edition\OpenRoadsDesigner\  [C:\Program Files\Bentley\OpenRoads Designer CONNECT Edition\OpenRoadsDesigner\]
      Arg: C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\  [C:\Program Files\Bentley\OpenRoadsDesignerCONNECTSDK\]
    
    [SDK Environment]
    
    ORD=C:\PROGRA~1\Bentley\OpenRoads Designer CONNECT Edition\OpenRoadsDesigner\
    ORDE=C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\
    ORDE_OUTPUT=C:\Users\msaz3224\AppData\Local\Temp\Bentley\OpenRoadsDesignerSDK\
    
    
    Path=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Riverbed\Steelhead Mobile\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\Common Files\Bentley Shared\MX\08.11.09\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Users\msaz3224\AppData\Local\Microsoft\WindowsApps;C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\bin\;C:\PROGRA~1\Bentley\OpenRoads Designer CONNECT Edition\OpenRoadsDesigner\
    
    [SDKTIPS]
    
       [TIP] "Type 'SDKFORUM' to go to the MicroStation Programming Community"
       [TIP] "Type e.g.'SDKSEARCH SystemCallback' to locate API specific implementation details"
       [TIP] "Use  e.g.'%SDKBUILDTOOL% +avilC MyApp > BuildOutput.txt' to obtain verbose sequential build details"
       [TIP] "Use 'BUILDALLEXAMPLES.bat' to validate your build environment"
       [TIP] "Type 'SDKMACROS' to view navigation and utility shortcut macro (aliases)"
       [TIP] "Type 'SDKTIPS' to see this list of tips again"
    
    C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\examples>buildallexamples
    Bentley Systems Make Utility. Version 10.00.00.26, Mar 15 2018
    Sat Nov 02 11:02:51 2019
    unhandled exception code 0xe0434352
    BMAKE: call trace
        line:  368, C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\mki\AssertToolSet.mki
        line:  114, C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\mki\ConfigurePolicy.mki
        line:   26, C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\mki\mdl.mki
        line:   23, C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\examples\ClrSDKExample\ClrSDKExample.mke
    dump file for process id 13356 thread id 5344
    dump type 0x000a2927
    dump file written to C:\Users\msaz3224\AppData\Local\Temp\bmake_TID_05344.dmp
    Bentley Systems Make Utility. Version 10.00.00.26, Mar 15 2018
    Sat Nov 02 11:02:51 2019
    unhandled exception code 0xe0434352
    BMAKE: call trace
        line:  368, C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\mki\AssertToolSet.mki
        line:  114, C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\mki\ConfigurePolicy.mki
        line:   26, C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\mki\mdl.mki
        line:   18, C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\examples\ManagedSDKExample\ManagedSDKExample.mke
    dump file for process id 7576 thread id 4116
    dump type 0x000a2927
    dump file written to C:\Users\msaz3224\AppData\Local\Temp\bmake_TID_04116.dmp
    Bentley Systems Make Utility. Version 10.00.00.26, Mar 15 2018
    Sat Nov 02 11:02:52 2019
    unhandled exception code 0xe0434352
    BMAKE: call trace
        line:  368, C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\mki\AssertToolSet.mki
        line:  114, C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\mki\ConfigurePolicy.mki
        line:   26, C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\mki\mdl.mki
        line:   36, C:\PROGRA~1\Bentley\OpenRoadsDesignerCONNECTSDK\examples\UnmanagedSDKExample\UnmanagedSDKExample.mke
    dump file for process id 5628 thread id 5160
    dump type 0x000a2927
    dump file written to C:\Users\msaz3224\AppData\Local\Temp\bmake_TID_05160.dmp
    

    Regards,

    Mark


    OpenRoads Designer 2023  |  Microstation 2023.2  |  ProjectWise 2023

  • I’ve finally found the answer to your SDK problem.  Visual Studio 2017 has slightly different registry entries than VS2015 used.  There are two solutions:

    1. Install Visual Studio 2015 alongside VS2017

    or mostly likely the more palatable solution…

          2. download the three .mki files from https://communities.bentley.com/products/programming/microstation_programming/m/mediagallery/274003 and replace the like-named files in the mki folder of the ORD SDK ( C:\Program Files\Bentley\OpenRoadsDesignerCONNECTSDK\mki).

     

    My apologies for taking so long to find the solution to your problem.

  • Thanks Barry, but im unfortunately still getting the same error after replacing those 3 files.

    It seems to still have an issue with registry paths - I have VS2017 Community installed - could that be it?

    I have also found the UnmanagedSDKExample mke still points to VS 2015, but seems to be unrelated? This doesn't resolve the issue though.

    Thanks for your help with this.

    Regards,

    Mark


    OpenRoads Designer 2023  |  Microstation 2023.2  |  ProjectWise 2023