Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23257] Windows: Retreiving a string created natively is too "large"?

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2016-06-02T12:38:44.000+0000
Affected Version/sRelease 5.4.0
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterJörgen Buder
AssigneeKota Iguchi
Created2016-04-21T15:18:35.000+0000
Updated2017-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?

Comments

  1. Kota Iguchi 2016-04-25

    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.getString expects string value stored with the key but it actually founds int. The value should be string when it is used with Ti.App.Properties.getString .
  2. Kota Iguchi 2016-06-02

    Closing for now, this is related to internal module api usage.
  3. Lee Morris 2017-03-24

    Closing ticket as invalid with reference to the above comments.

JSON Source