# Error I can't explain...

**URL:** <https://forum.xojo.com/t/error-i-cant-explain/16862>\
**Category:** General\
**Created:** [May 28, 2014, 8:12am UTC](https://forum.xojo.com/t/error-i-cant-explain/16862 "2014-05-28T08:12:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jakob\_Krabbe](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/71e660/32.png) [@Jakob\_Krabbe](https://forum.xojo.com/u/Jakob_Krabbe)\
**Post date:** [May 28, 2014, 8:12am UTC](https://forum.xojo.com/t/error-i-cant-explain/16862/1 "2014-05-28T08:12:12Z")

</div>

I get an error on these two lines. Why is that? If i change the settings to specific numbers in the code, then this specific error will be solved but then other errors occur later in the code…

These things used to work! But also, I’m lost in the Xojo upgrades… maybe something has changed? I was the case in previous errors. (2014r1. Not the very latest but sort of a late version.)

![](http://www.syscare.se/files/xojo-error-1.jpg)

---

<div class="post-metadata">

**Author:** ![Julen\_I](https://forum.xojo.com/user_avatar/forum.xojo.com/julen_i/32/202_2.png) [@Julen\_I](https://forum.xojo.com/u/Julen_I)\
**Post date:** [May 28, 2014, 8:20am UTC](https://forum.xojo.com/t/error-i-cant-explain/16862/2 "2014-05-28T08:20:14Z")

</div>

What is the error you get?

Maybe because you are assingning a Double to an Integer?

Julen

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [May 28, 2014, 8:23am UTC](https://forum.xojo.com/t/error-i-cant-explain/16862/3 "2014-05-28T08:23:53Z")

</div>

what is error message?

Probably not double vs. integer.

KAT could have no implicit instance for example.

---

<div class="post-metadata">

**Author:** ![Wayne\_Golding](https://forum.xojo.com/user_avatar/forum.xojo.com/wayne_golding/32/165_2.png) [@Wayne\_Golding](https://forum.xojo.com/u/Wayne_Golding)\
**Post date:** [May 28, 2014, 8:32am UTC](https://forum.xojo.com/t/error-i-cant-explain/16862/4 "2014-05-28T08:32:18Z")

</div>

From the looks of the image you’re accessing the UI from a Thread. Don’t do that. You need to take all the UI referenced control data & copy it to properties before running your thread and if you need to update the UI from your thread you need to use a timer to do the update.

---

<div class="post-metadata">

**Author:** ![Jakob\_Krabbe](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/71e660/32.png) [@Jakob\_Krabbe](https://forum.xojo.com/u/Jakob_Krabbe)\
**Post date:** [May 28, 2014, 1:23pm UTC](https://forum.xojo.com/t/error-i-cant-explain/16862/5 "2014-05-28T13:23:04Z")

</div>

Yes!! There it is!!  
I have already solved this… in a similar project… somewhere…! 🙂

Thank you!

---

<div class="post-metadata">

**Author:** ![Garth\_Hjelte](https://forum.xojo.com/user_avatar/forum.xojo.com/garth_hjelte/32/705_2.png) [@Garth\_Hjelte](https://forum.xojo.com/u/Garth_Hjelte)\
**Post date:** [May 28, 2014, 2:19pm UTC](https://forum.xojo.com/t/error-i-cant-explain/16862/6 "2014-05-28T14:19:20Z")

</div>

Wayne, I’m impressed. That’s really good “looking at the whole code” rather than being distracated by the Double-\>Int16 thing.

Good catch!

---

<div class="post-metadata">

**Author:** ![Wayne\_Golding](https://forum.xojo.com/user_avatar/forum.xojo.com/wayne_golding/32/165_2.png) [@Wayne\_Golding](https://forum.xojo.com/u/Wayne_Golding)\
**Post date:** [May 29, 2014, 2:49am UTC](https://forum.xojo.com/t/error-i-cant-explain/16862/7 "2014-05-29T02:49:32Z")

</div>

Thanks Garth, Jakob’s image made the issue very clear to me, but sometimes it takes a different set of eyes to see the obvious - I know it’s happened to me more than once.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:14pm UTC](https://forum.xojo.com/t/error-i-cant-explain/16862/8 "2020-10-29T17:14:47Z")

</div>


