String.Split difference in Simulator vs Final

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
h_kos
Posts: 11
Joined: Wed Oct 28, 2015 11:30 pm

String.Split difference in Simulator vs Final

Postby h_kos » Wed Nov 04, 2015 9:11 am

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
Attachments
ctshml5NoWork.zip
complete projct
(491.79 KiB) Downloaded 342 times

h_kos
Posts: 11
Joined: Wed Oct 28, 2015 11:30 pm

Re: Simulator vs Final

Postby h_kos » Wed Nov 04, 2015 11:44 pm

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

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: Simulator vs Final

Postby JS-Support @Userware » Fri Nov 06, 2015 9:55 am

Thank you Harry. We will keep you updated as soon as the issue is fixed.

Regards,
JS-Support


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 33 guests

 

 

cron