Hi,
I admit I'm a klutz, but...
I have also lost an hour of my life debugging what turned out to be a typo where I reused a fitfield id in two session.createField() calls. It could have been a five second debug, but the only error I got was that the object couldn't be accessed... which is the same error that I also get for almost any other problem that I encounter with session.createField().
Please can you consider making the session.createField() errors in the SDK more meaningful!
I would suggest, at the very least:
1. "FitField ID collision - you are attempting to create multiple fields with the same id"
2. "Exceeds legal number of fields"
3. "That would use too much memory for this device"
4. "Stop and have a coffee, seriously, you need it"
5. "You are missing the following required configuration options..."
6. "String fields require a :count option that is one bigger than the size of the string you want to store and is less than the maximum supported for this device which is ..."
Thank-you
G