# The xml2skp sample crashes SketchUp 2020

**URL:** <https://forums.sketchup.com/t/the-xml2skp-sample-crashes-sketchup-2020/130613>\
**Category:** SketchUp SDK\
**Tags:** import\
**Created:** [July 9, 2020, 8:34am UTC](https://forums.sketchup.com/t/the-xml2skp-sample-crashes-sketchup-2020/130613 "2020-07-09T08:34:00Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![JoNoS](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@JoNoS](https://forums.sketchup.com/u/JoNoS)\
**Post date:** [July 20, 2020, 7:58pm UTC](https://forums.sketchup.com/t/the-xml2skp-sample-crashes-sketchup-2020/130613/21 "2020-07-20T19:58:49Z")

</div>

> [@sebd](#):
>
> i don’t understand why anyone would ship an SDK Sample that can’t be debugged in Debug

Please see this old thread:

> [@Debug DLL of exporter plugin](https://forums.sketchup.com/t/debug-dll-of-exporter-plugin/14328):
>
> Is there anyway to load a debug version of a export dll. If I take the example skp\_to\_xml debug dll and load it in sketchup sketchup crashes. Only the release seems to work. I know that I can turn off all optimizations for the release version and that works. But is there a way to load the debug version?

---

<div class="post-metadata">

**Author:** ![JoNoS](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@JoNoS](https://forums.sketchup.com/u/JoNoS)\
**Post date:** [July 20, 2020, 8:12pm UTC](https://forums.sketchup.com/t/the-xml2skp-sample-crashes-sketchup-2020/130613/22 "2020-07-20T20:12:16Z")

</div>

> [@DanRathbun](#):
>
> Ie, .362 is the Windows build, .363 is the MacOS build.

 ![image](https://global.discourse-cdn.com/sketchup/original/3X/b/8/b8c8dc9a8e7fec24b9ff82df3121c3ecfb4a92c0.png)

Hmmmm… maybe you are right, Dan, and I am not understanding the versioning… 🙂  
Anyway, I can assure you that I **am** running Windows, and the installer I have (see picture) says 363. How comes?

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [July 20, 2020, 8:29pm UTC](https://forums.sketchup.com/t/the-xml2skp-sample-crashes-sketchup-2020/130613/23 "2020-07-20T20:29:44Z")

</div>

You are looking at the properties of the **application** executable.  
And yes you are **correct** , the SDK d/l page lists the build numbers incorrectly (they are swapped.)  
(I now remember telling them about this and several other errors, but their attempts to fix them was only partially completed.)

---

<div class="post-metadata">

**Author:** ![JoNoS](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@JoNoS](https://forums.sketchup.com/u/JoNoS)\
**Post date:** [July 20, 2020, 8:39pm UTC](https://forums.sketchup.com/t/the-xml2skp-sample-crashes-sketchup-2020/130613/24 "2020-07-20T20:39:49Z")

</div>

> [@DanRathbun](#):
>
> I now remember telling them about this and several other error

Thanks, Dan.  
It is really sad that Trimble personnell, even if notified by you, does not correct such errors. Because such errors contribute to confuse users (even Sages, I’ve seen!).  
And, as always, thanks for your insight!

---

<div class="post-metadata">

**Author:** ![sebd](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@sebd](https://forums.sketchup.com/u/sebd)\
**Post date:** [July 20, 2020, 8:42pm UTC](https://forums.sketchup.com/t/the-xml2skp-sample-crashes-sketchup-2020/130613/25 "2020-07-20T20:42:45Z")

</div>

thanks for the pointer to the technical explanation. Indeed passing std::string across DLLs is a poor choice.

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [July 20, 2020, 8:54pm UTC](https://forums.sketchup.com/t/the-xml2skp-sample-crashes-sketchup-2020/130613/26 "2020-07-20T20:54:14Z")

</div>

> [@JoNoS](#):
>
> It is really sad that Trimble personnell, even if notified by you, does not correct such errors. Because such errors contribute to confuse users (even Sages, I’ve seen!).

I agree. Especially when the target audience are engineers using the products to create documentation, and their own documentation for the products is faulty.

Opened another API issue …

> <https://github.com/SketchUp/api-issue-tracker/issues/507>
>
> \#### C SDK API Documentation Issue
> 
> On Sketchup’s SDK page (https://extensions….sketchup.com/sketchup-sdk) they refer to the latest Windows SDK version as 20.0.362.
> 
> \*\*The version numbers for Windows and MacOS are swapped.\*\*

[Previous page](https://forums.sketchup.com/t/the-xml2skp-sample-crashes-sketchup-2020/130613.md?page=1)
