[TIMOB-23257] Windows: Retreiving a string created natively is too "large"?
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2016-06-02T12:38:44.000+0000 |
| Affected Version/s | Release 5.4.0 |
| Fix Version/s | n/a |
| Components | Windows |
| Labels | n/a |
| Reporter | Jörgen Buder |
| Assignee | Kota Iguchi |
| Created | 2016-04-21T15:18:35.000+0000 |
| Updated | 2017-03-24T17:57:26.000+0000 |
Description
The example code in the background task at the docs section at the website suggest to use a simple code to count++ a counter witch is a string but code is suppose to count ++ and return to string. Problem is that when I try to get the string at the TI context side the getString gives this error:
Application Error: "Runtime Error: Ti.App.Properties: Unable to restore large strings"
It is a strange error considering this should probably be just a counter.. ??
Tryting to verify the background service by printing the string and see if it did indeed count up over time... but not able to do that now, is this a bug?
Take a look at [Ti/src/App/Properties.cpp#L72](https://github.com/appcelerator/titanium_mobile_windows/blob/master/Source/Ti/src/App/Properties.cpp#L72), it means
Ti.App.Properties.getStringexpectsstringvalue stored with the key but it actually foundsint. The value should bestringwhen it is used withTi.App.Properties.getString.Closing for now, this is related to internal module api usage.
Closing ticket as invalid with reference to the above comments.