Run time error length=0; regionStart=0; regionLength=-1

I have made this to control a old fog machine using bits from the tutorials of Juan Antonio. But when I try to test this with the companion it gives me the the run time error:
length=0; regionStart=0; regionLength=-1
Test_12
What is the possible fault that cases this run time error?

Please provide a screenshot of the runtime error

Runetimeerror

Does the error occur when you load the app into companion, or when you press a particular button? Is the clock running on initialisation ?

The error occurs directly when i load the app in the companion.
As far as know (I'm pretty new to this) the clock only start running when pressing the Ready_btn.

Do you have anything in the Screen1. Initialize event ?

Look also in the designer for your clock component properties, what does it look like?

image

You probably mean to use the timer.Enabled property instead of the timer.AlwaysFires property in your blocks....

image

The clock properties look like this, I already tried to tick and un tick the boxes but is doesn't make a difference.

Here is a simple BlueTooth text receiver sample, for single value per line:
blocks
initialize global message to


Thanks! I didn't use everything but it has helped me with solving the problem.

This is how it now works without any problems.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.