Help With Widget 2.0 Pickerwheel

I am trying to insert a pickerWheel in my app using the exact same code that’s in the daily build example, simple copy paste. All that I get is the following error:

 Handling the unhandled error ?:0: attempt to perform arithmetic on field '\_scrollHeight' (a nil value) getting client listing... 2013-03-20 13:28:50.457 Corona Simulator[73564:707] Runtime error ?:0: attempt to perform arithmetic on field '\_scrollHeight' (a nil value) stack traceback: [C]: ? ?: in function 'createScrollBar' ?: in function <?:306> ?: in function <?:218> Handling the unhandled error ?:0: attempt to perform arithmetic on field '\_scrollHeight' (a nil value) Handling the unhandled error ?:0: attempt to perform arithmetic on field '\_scrollHeight' (a nil value) Handling the unhandled error ?:0: attempt to perform arithmetic on field '\_scrollHeight' (a nil value) Handling the unhandled error ?:0: attempt to perform arithmetic on field '\_scrollHeight' (a nil value) 2013-03-20 13:28:50.482 Corona Simulator[73564:707] Runtime error ?:0: attempt to perform arithmetic on field '\_scrollHeight' (a nil value) stack traceback: [C]: ? ?: in function 'createScrollBar' ?: in function <?:306> ?: in function <?:218>2013-03-20 13:28:50.496 Corona Simulator[73564:707] Runtime error ?:0: attempt to perform arithmetic on field '\_scrollHeight' (a nil value) stack traceback: [C]: ? ?: in function 'createScrollBar' ?: in function <?:306> ?: in function <?:218>

 

 

Since the new widgets 2.0 I have gotten the above error with every daily build. I have been banging my head trying to figure this out for weeks and have gotten nowhere, any help would be GREAT!!!

 

I am trying to insert a pickerWheel in my app using the exact same code that’s in the daily build example, simple copy paste. All that I get is the following error:

Handling the unhandled error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) getting client listing… 2013-03-20 13:28:50.457 Corona Simulator[73564:707] Runtime error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) stack traceback: [C]: ? ?: in function ‘createScrollBar’ ?: in function ?: in function Handling the unhandled error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) Handling the unhandled error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) Handling the unhandled error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) Handling the unhandled error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) 2013-03-20 13:28:50.482 Corona Simulator[73564:707] Runtime error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) stack traceback: [C]: ? ?: in function ‘createScrollBar’ ?: in function ?: in function 2013-03-20 13:28:50.496 Corona Simulator[73564:707] Runtime error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) stack traceback: [C]: ? ?: in function ‘createScrollBar’ ?: in function ?: in function

 

 

Since the new widgets 2.0 I have gotten the above error with every daily build. I have been banging my head trying to figure this out for weeks and have gotten nowhere, any help would be GREAT!!!

 

What daily build are you using? 

1058, but been happening with all daily builds sine widgets 2.0

 

Can you email me an example? I have a unit test for the pickerWheel here and have not seen that error message yet.

My email: danny[at]coronalabs[dot]com

Ok, I emailed you an example. Ignore all the variables, the code is just a snippet from my application code. Comment out the lines that create the picker wheel(~line 327-333) and code runs without any errors.

Hey Danny, you get the code via email fine?

Hey Chevol. I did, going to look into this as soon as I possibly can. Thanks

Ok great thanks, just making sure it got to you fine. Thanks again.

I am trying to insert a pickerWheel in my app using the exact same code that’s in the daily build example, simple copy paste. All that I get is the following error:

Handling the unhandled error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) getting client listing… 2013-03-20 13:28:50.457 Corona Simulator[73564:707] Runtime error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) stack traceback: [C]: ? ?: in function ‘createScrollBar’ ?: in function ?: in function Handling the unhandled error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) Handling the unhandled error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) Handling the unhandled error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) Handling the unhandled error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) 2013-03-20 13:28:50.482 Corona Simulator[73564:707] Runtime error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) stack traceback: [C]: ? ?: in function ‘createScrollBar’ ?: in function ?: in function 2013-03-20 13:28:50.496 Corona Simulator[73564:707] Runtime error ?:0: attempt to perform arithmetic on field ‘_scrollHeight’ (a nil value) stack traceback: [C]: ? ?: in function ‘createScrollBar’ ?: in function ?: in function

 

 

Since the new widgets 2.0 I have gotten the above error with every daily build. I have been banging my head trying to figure this out for weeks and have gotten nowhere, any help would be GREAT!!!

 

What daily build are you using? 

1058, but been happening with all daily builds sine widgets 2.0

 

Can you email me an example? I have a unit test for the pickerWheel here and have not seen that error message yet.

My email: danny[at]coronalabs[dot]com

Ok, I emailed you an example. Ignore all the variables, the code is just a snippet from my application code. Comment out the lines that create the picker wheel(~line 327-333) and code runs without any errors.

Hey Danny, you get the code via email fine?

Hey Chevol. I did, going to look into this as soon as I possibly can. Thanks

Ok great thanks, just making sure it got to you fine. Thanks again.