Page 1 of 1

String.Split difference in Simulator vs Final

Posted: Wed Nov 04, 2015 9:11 am
by h_kos
Hi,

I attach a very small project that just parses a text:
In the simulator it works fine, when I run the final version in browser, the app crashes.

This app is an extract of a bigger app, but the exception is the same.

Any idea?


Visual Studio 2013 Ultimate Update 5
cshtml5 Build 5.2

Re: Simulator vs Final

Posted: Wed Nov 04, 2015 11:44 pm
by h_kos
It is the string.Split method that causes the exception in JSIL.
Replaced the build-in Split method with an own implementation of it and now it works.


Took imlementation from Stackoverflow (for those who have a similar problem):
http://stackoverflow.com/questions/3588503/what-are-the-alternatives-to-split-a-string-in-c-sharp-that-dont-use-string-spl

Harry

Re: Simulator vs Final

Posted: Fri Nov 06, 2015 9:55 am
by JS-Support @Userware
Thank you Harry. We will keep you updated as soon as the issue is fixed.

Regards,
JS-Support