<?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>A better way to debug MDL loader error 127</title><link>https://communities.bentley.com/products/administration/f/product-administration-forum/227981/a-better-way-to-debug-mdl-loader-error-127</link><description>Hello guys, is there a way to access some kind of Microstation log when user encounters MDL loader error &amp;quot;OS could not load xx.dll&amp;quot; (error 127) ? Or do I need to manually find out with applications like ProcessMonitor? I was wondering, maybe Microstation</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: A better way to debug MDL loader error 127</title><link>https://communities.bentley.com/thread/705485?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 15:33:49 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7a477ad7-bd90-4c14-adb3-d35736a03593</guid><dc:creator>MaryB</dc:creator><description>&lt;p&gt;FYI&lt;/p&gt;
&lt;p&gt;While this is probably not the source of your issue, you should be aware that SS4 is not certified to run on Windows 10, nor Windows 11. It might run fine, but there is definitely the possibility of some things not working. SS4 is also no longer supported by Bentley, so you will be essentially on your own when troubleshooting any issues stemming from that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A better way to debug MDL loader error 127</title><link>https://communities.bentley.com/thread/705338?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 06:06:29 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b8a0c415-b71e-4b45-8c5a-e45b5be0ffa9</guid><dc:creator>Jan Šlegr</dc:creator><description>[quote userid="1070775" url="~/products/administration/f/product-administration-forum/227981/a-better-way-to-debug-mdl-loader-error-127/705272"]I thought editing MS_ADDINDEPENDENCYPATH will help (like it will use this folder as priority for DLL lookup) but for some reason it wasn&amp;#39;t used[/quote]
&lt;p&gt;Good to know you solved the issue :-)&lt;/p&gt;
&lt;p&gt;I remember (not too well) this vairable and general problem of dll location was discussed in the past, but I guess there was no conclusion done at this time.&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: A better way to debug MDL loader error 127</title><link>https://communities.bentley.com/thread/705272?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 18:38:14 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:da305ddf-bb53-4d71-a1c4-fd7c067affa9</guid><dc:creator>Lubo B</dc:creator><description>&lt;p&gt;I managed to fix it using Process Monitor logs. I saw that MS tried to load one of my dependencies from different folder than I wanted, causing this trouble.&amp;nbsp;I thought editing MS_ADDINDEPENDENCYPATH will help (like it will use this folder as priority for DLL lookup) but for some reason it wasn&amp;#39;t used, so i had to edit the priority of my folder in environment variable Path(basically forcing the right folder to be used first).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A better way to debug MDL loader error 127</title><link>https://communities.bentley.com/thread/704980?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 10:33:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f50d3007-f98a-441c-87bc-76be5335bf17</guid><dc:creator>Jan Šlegr</dc:creator><description>[quote userid="1070775" url="~/products/administration/f/product-administration-forum/227981/a-better-way-to-debug-mdl-loader-error-127/704971"]but it looked fine[/quote]
&lt;p&gt;DependencyWalker tells only what is configured in the file itself, not whether it was found or not. Plus, it!s a tree, so directly linked libraries can require other files...&lt;/p&gt;
&lt;p&gt;To ensure the same workspace can also help, because there are variables defining where to find .ma files and dependency dll files.&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: A better way to debug MDL loader error 127</title><link>https://communities.bentley.com/thread/704971?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 10:00:45 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f14d5d39-94a3-4cca-bad1-e615b2a5971c</guid><dc:creator>Lubo B</dc:creator><description>&lt;p&gt;Its plugin .ma consisting also of DLL. I sent DependencyWalker app to client and asked them to send me a screenshot, but it looked fine(even though as u said,&amp;nbsp;its kinda tricky when DLLs are not in same folder). I hope Process Monitor log will tell me more.&lt;/p&gt;
[quote userid="2473" url="~/products/administration/f/product-administration-forum/227981/a-better-way-to-debug-mdl-loader-error-127/704966"]Are versions (MicroStation, Windows as well) the same?[/quote]
&lt;p&gt;Well actually i havent thought about Windows version. Because i didn&amp;#39;t try it on windows 11 yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A better way to debug MDL loader error 127</title><link>https://communities.bentley.com/thread/704967?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 09:42:31 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:5f9e5ec7-70dc-4437-854c-37f144547e39</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;One more idea:&lt;/p&gt;
[quote userid="1070775" url="~/products/administration/f/product-administration-forum/227981/a-better-way-to-debug-mdl-loader-error-127"]MDL loader error &amp;quot;OS could not load xx.dll&amp;quot; (error 127) [/quote]
&lt;p&gt;If the application is native code application, I recommend to check all expected depdencies. Some &amp;quot;dependency walker&amp;quot; (like &lt;a href="https://github.com/lucasg/Dependencies" rel="noopener noreferrer" target="_blank"&gt;this one&lt;/a&gt;) can help to analyze whether all necessary dll (libraries) are available. But what can be tricky is when dlls are in different folders and MicroStation or Windows setting is involved in the dependency resolution.&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: A better way to debug MDL loader error 127</title><link>https://communities.bentley.com/thread/704966?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 09:37:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f30b201a-45cb-462a-b4ab-91dc38120b02</guid><dc:creator>Jan Šlegr</dc:creator><description>[quote userid="1070775" url="~/products/administration/f/product-administration-forum/227981/a-better-way-to-debug-mdl-loader-error-127/704960"]Hello, this error is caused when I try to load my own plugin .ma file.[/quote]
&lt;p&gt;Because &amp;quot;MDL&amp;quot; is too fuzzy term with several different meanings: What is &amp;quot;type&amp;quot; of .ma application? Is it old pseudocode application (no dll, only .ma + rsc files), or is it native application (.ma loader + dll files)?&lt;/p&gt;
[quote userid="1070775" url="~/products/administration/f/product-administration-forum/227981/a-better-way-to-debug-mdl-loader-error-127/704960"]I mean, the plugin works on other machines but this is a new clean install machine which displays the error[/quote]
&lt;p&gt;Are versions (MicroStation, Windows as well) the same?&lt;/p&gt;
&lt;p&gt;Often, even when probably not this case, different behavior is caused by missing libraries (like C runtime / msvcrt.dll).&lt;/p&gt;
[quote userid="1070775" url="~/products/administration/f/product-administration-forum/227981/a-better-way-to-debug-mdl-loader-error-127/704960"]Thats why some more accurate log would come in handy in these situations.[/quote]
&lt;p&gt;The problem is that it&amp;#39;s internal MicroStation error, not Windows one. Maybe to use debugger (e.g. WinDbg) and to attach to the process, can be tried.&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: A better way to debug MDL loader error 127</title><link>https://communities.bentley.com/thread/704960?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 09:07:54 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:969193d7-5c6b-45d7-9ee8-7325dab4962a</guid><dc:creator>Lubo B</dc:creator><description>&lt;p&gt;Hello, this error is caused when I try to load my own plugin .ma file. The error displays at the start of the microstation. Yes, it appears in console window (so thats why i was wondering if MS keeps some kind of logs which could describe it more properly). Version of MS is kinda old one,&amp;nbsp;MicroStation V8i SS4 08.11.09.867. I mean, the plugin works on other machines but this is a new clean install machine which displays the error, and as I dont have access to the machine its kinda troublesome to troubleshoot this problem. Thats why some more accurate log would come in handy in these situations. I thought reinstall of MS would help but it didn&amp;#39;t.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A better way to debug MDL loader error 127</title><link>https://communities.bentley.com/thread/704949?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 08:25:10 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fb847571-163d-4241-be77-c1b354235685</guid><dc:creator>Marc Thomas</dc:creator><description>&lt;p&gt;Hi Lubo, this is likely to be a version mismatch between the MDL and MicroStation.&lt;/p&gt;
&lt;p&gt;Which MDL is involved (or is it more than one)?&lt;/p&gt;
&lt;p&gt;When do you see the error?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m assuming this is appearing in a black text window?&lt;/p&gt;
&lt;p&gt;Which version of MicroStation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>