Ticket Created
over 3 years ago

WERETECH - 10116

Code crash only when type = widget

Hi,

I copied a code base for an app in eclipse using latest compiler. 

I made a few changes to the code... adding glance view, annotating widget view, updated the xml to type = widget...

When I run it as a widget it crashes in the widget initialise function. If I keep commenting out lines the failure moves down the function code. The error is not very helpful

Error: Illegal Access (Out of Bounds)
Details: Failed invoking <symbol>
Stack:
- initialize() at HRVWidget.mc:228 0x100005e7

If I now set the manifest type to "App" the code runs fine. So no code changes!

Any ideas welcome as beating head against a brick wall on this one.

Regards,

David