# Rhino crashing C++

**URL:** https://forum.compas-framework.org/t/rhino-crashing-c/497
**Category:** Uncategorized
**Created:** [June 29, 2021, 12:19pm UTC](https://forum.compas-framework.org/t/rhino-crashing-c/497 "2021-06-29T12:19:58Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![elijo](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@elijo](https://forum.compas-framework.org/u/elijo)
#### Post date: [June 29, 2021, 12:19pm UTC](https://forum.compas-framework.org/t/rhino-crashing-c/497/1 "2021-06-29T12:19:58Z")

</div>

Hi, based on your \_fd\_cpp files I created a similar dll and accompanying python file for form-finding and I am using a Network datastructure, all in ghPython. It all works fine, however, now that I am using solver in C++ Rhino is often crashing. Any advice on that?

---

<div class="post-metadata">

### Author: ![tomvanmele](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/tomvanmele/32/13_2.png) [@tomvanmele](https://forum.compas-framework.org/u/tomvanmele)
#### Post date: [July 2, 2021, 12:25pm UTC](https://forum.compas-framework.org/t/rhino-crashing-c/497/2 "2021-07-02T12:25:18Z")

</div>

not really. i had the same issue and therefore abandoned this strategy for cpp code. didn’t even realize these files were still available somewhere 🙂 where did you find them?

---

<div class="post-metadata">

### Author: ![elijo](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@elijo](https://forum.compas-framework.org/u/elijo)
#### Post date: [July 2, 2021, 2:15pm UTC](https://forum.compas-framework.org/t/rhino-crashing-c/497/3 "2021-07-02T14:15:35Z")

</div>

In fd folder under numerical 🙂 What would be the alternative to keep using solver in C++?

---

<div class="post-metadata">

### Author: ![tomvanmele](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/tomvanmele/32/13_2.png) [@tomvanmele](https://forum.compas-framework.org/u/tomvanmele)
#### Post date: [July 2, 2021, 2:50pm UTC](https://forum.compas-framework.org/t/rhino-crashing-c/497/4 "2021-07-02T14:50:12Z")

</div>

i guess you are trying to use this cpp version because you don’t want to use RPC?  
you could try to use the Rhino SDK to expose the cpp solver to ironpython, but i have no real experience with that…

---

<div class="post-metadata">

### Author: ![elijo](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@elijo](https://forum.compas-framework.org/u/elijo)
#### Post date: [July 2, 2021, 3:20pm UTC](https://forum.compas-framework.org/t/rhino-crashing-c/497/5 "2021-07-02T15:20:30Z")

</div>

I would like to speed up the calculation to keep the network interactive since the solver in phyton is not always fast enough for form-finding with additional constraints for a larger network. I will try SDK, thank you

---

<div class="post-metadata">

### Author: ![tomvanmele](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/tomvanmele/32/13_2.png) [@tomvanmele](https://forum.compas-framework.org/u/tomvanmele)
#### Post date: [July 2, 2021, 4:31pm UTC](https://forum.compas-framework.org/t/rhino-crashing-c/497/6 "2021-07-02T16:31:06Z")

</div>

btw, you can also use `alglib`, which is a linear algebra library with an ironpython binding. it is a bit difficult to use but i have successfully used it for force density based form finders in rhino…

---

<div class="post-metadata">

### Author: ![tomvanmele](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/tomvanmele/32/13_2.png) [@tomvanmele](https://forum.compas-framework.org/u/tomvanmele)
#### Post date: [July 2, 2021, 4:31pm UTC](https://forum.compas-framework.org/t/rhino-crashing-c/497/7 "2021-07-02T16:31:30Z")

</div>

can share some old code if you’re interested…

---

<div class="post-metadata">

### Author: ![elijo](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@elijo](https://forum.compas-framework.org/u/elijo)
#### Post date: [July 2, 2021, 5:47pm UTC](https://forum.compas-framework.org/t/rhino-crashing-c/497/8 "2021-07-02T17:47:16Z")

</div>

Sure, that would be great! Thank you very much

---

<div class="post-metadata">

### Author: ![tomvanmele](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/tomvanmele/32/13_2.png) [@tomvanmele](https://forum.compas-framework.org/u/tomvanmele)
#### Post date: [August 11, 2021, 1:20pm UTC](https://forum.compas-framework.org/t/rhino-crashing-c/497/9 "2021-08-11T13:20:51Z")

</div>

haven’t had time to clean it up, but some of my old alglib code is in this repo…

> **[GitHub - BlockResearchGroup/compas\_alglib](https://github.com/BlockResearchGroup/compas_alglib)**
>
> Contribute to BlockResearchGroup/compas\_alglib development by creating an account on GitHub.
