Does Anyone Have Any Resources or Suggestions for Debugging a C'tor Failures on WP8 but Not WP7

whoisj

I'm looking for suggestions and/or resources to help me debug an issue I'm having with an App I developed for Windows Phone. The App has a static class which contains a bunch of constants. Most of the constants are in the format of read-only arrays of value types. The value types are complex, but only contain intrinsic values types (like int, float, etc) and strings.

The problem I'm facing (only happens on some WP8 devices) is that when the static class' constructor initializes the App crashes with an IndexOutOfRangeException. This only happens on Windows Phone 8 and only on some devices (none of which I own of course). This does not reproduce in the emulators.

If anyone knows of good debugging tactics for issues like this, or common problematic patterns I should be looking for, please let me know.

whoisj

The large static data blobs were the source of the problem. For reasons not completely understood, on several multicore systems the initialization (JIT) was happening out of order and causing errors. Thus the IndexOutOfBoundsExceptions being thrown.

The solution was to break the data out into a separate file which is loaded at run-time into read-only arrays and otherwise treated identically.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Anyone have example sample for Webclient upload in WP8?

From Dev

WP8 / Cordova filesystem - does anyone know the correct code?

From Dev

Does WP7 background agent have to be in a separate DLL?

From Dev

can run application coding in C# in wp8 on phone with wp7 operating system?

From Dev

Use of BingMapsTask on WP8 and WP7 - different result

From Dev

Getting calendar appointments working on WP7 but not WP8

From Dev

WP7 - The attachable property 'Resources' was not found in type 'PhoneApplicationPage'

From Dev

WP8: PhoneApplicationPage.Resources - "Resources" is not recognized or is not accessible

From Dev

XAML is not updating when debugging on a WP8 device

From Dev

Scheduled task agent wp7 soap client does not work

From Dev

WP8 Xml parser in C#

From Dev

Databinding XML in C# (WP8)

From Dev

BaasBox and C# from WP8?

From Dev

WP8 Xml parser in C#

From Dev

C++ - Does anyone have any tricks for analyzing pointer to pointer problems?

From Dev

Operation not permitted on IsolatedStorageFileStream - WP7 C#

From Dev

(C++/WP8) What's the platform macro defined for WP8 platform?

From Dev

Does anyone have any benchmaking data for Rstudio Server?

From Dev

Does anyone have any idea what is wrong with this code?

From Dev

How to images show in Wp8 i have a stream Path

From Dev

How to use the headphones jack to send data to a circuit board in WP7 or WP8

From Dev

Live tile doesn't work after upgrading the project from WP7 to WP8

From Dev

How to use the headphones jack to send data to a circuit board in WP7 or WP8

From Dev

Cannot Find File that does exist in IsolatedStorage (WP8)

From Dev

Mediafile wp8 does not play using Uri

From Dev

Multiples MessageBoxes - WP7

From Dev

Simplest WP7 logger

From Dev

Disabling ApplicationBarIconButton in wp7

From Dev

c# wp8 timepicker deactivation default eventhandler

Related Related

  1. 1

    Anyone have example sample for Webclient upload in WP8?

  2. 2

    WP8 / Cordova filesystem - does anyone know the correct code?

  3. 3

    Does WP7 background agent have to be in a separate DLL?

  4. 4

    can run application coding in C# in wp8 on phone with wp7 operating system?

  5. 5

    Use of BingMapsTask on WP8 and WP7 - different result

  6. 6

    Getting calendar appointments working on WP7 but not WP8

  7. 7

    WP7 - The attachable property 'Resources' was not found in type 'PhoneApplicationPage'

  8. 8

    WP8: PhoneApplicationPage.Resources - "Resources" is not recognized or is not accessible

  9. 9

    XAML is not updating when debugging on a WP8 device

  10. 10

    Scheduled task agent wp7 soap client does not work

  11. 11

    WP8 Xml parser in C#

  12. 12

    Databinding XML in C# (WP8)

  13. 13

    BaasBox and C# from WP8?

  14. 14

    WP8 Xml parser in C#

  15. 15

    C++ - Does anyone have any tricks for analyzing pointer to pointer problems?

  16. 16

    Operation not permitted on IsolatedStorageFileStream - WP7 C#

  17. 17

    (C++/WP8) What's the platform macro defined for WP8 platform?

  18. 18

    Does anyone have any benchmaking data for Rstudio Server?

  19. 19

    Does anyone have any idea what is wrong with this code?

  20. 20

    How to images show in Wp8 i have a stream Path

  21. 21

    How to use the headphones jack to send data to a circuit board in WP7 or WP8

  22. 22

    Live tile doesn't work after upgrading the project from WP7 to WP8

  23. 23

    How to use the headphones jack to send data to a circuit board in WP7 or WP8

  24. 24

    Cannot Find File that does exist in IsolatedStorage (WP8)

  25. 25

    Mediafile wp8 does not play using Uri

  26. 26

    Multiples MessageBoxes - WP7

  27. 27

    Simplest WP7 logger

  28. 28

    Disabling ApplicationBarIconButton in wp7

  29. 29

    c# wp8 timepicker deactivation default eventhandler

HotTag

Archive