Log in or register to post comments

Executing QCAR with a mono dll (System.Web.Extensions.dll) on IOs

June 26, 2013 - 8:32am #1
Dear Support Team,
 
I have a project which runs perfectly with QCAR (with Unity 3.5.6 f4) an both Android an IOS (XCode 4.6.3).
 
However, I've tried to add an external dependencies to System.Web.Extensions.dll (in order to use the JavaScriptSerializer class). As soon as I add this dll to the plugins folder of my Unity project, I have the following error when I am running the application on a IPad 4 :
 
error: memory read failed
 
And the console log is : 
 
2013-06-26 16:05:23.828 testPlugin[28910:907] -> registered mono modules 0x20f82f0
-> applicationDidFinishLaunching()
 
The application is locked in the splashscreen view.
 
Then, if I remove System.Web.Extensions.dll from plugin folder, it works again.
 
Note that System.Web.Extensions.dll works perfectly in an empty project (without QCAR) deployed on IPad 4. And as soon as I add QCAR package, I find back the same error.
 
And the last point is that the project works perfectly on Android devices (with both QCAR and System.Web.Extensions.dll).
 
So what's going wrong with QCAR and System.Web.Extensions.dll on IOS ?!
 
Thanks in advance for your help,
 
Christophe Montandon
 
P.S. : You can find a very basic project which reproduces the error at http://support.diotasoft.com/QCAR/TestPluginsIOS.zip

Executing QCAR with a mono dll (System.Web.Extensions.dll) on IO

June 27, 2013 - 1:35am #5

Thanks very much for sharing your solution Christophe :)

N

Executing QCAR with a mono dll (System.Web.Extensions.dll) on IO

June 26, 2013 - 3:30pm #4

For those who would have the same technical issue (and also the same needs ...), I got around the problem while using Newtonsoft Json dynamic library for json files deserialization instead of System.web.extensions.dll. It offers a .Net dynamic library which is very easy to use and which works fine on both android and ios platforms ... even with Vuforia ;)

Very best regards,

Christophe Montandon. 

Executing QCAR with a mono dll (System.Web.Extensions.dll) on IO

June 26, 2013 - 9:08am #3

Tank you for your quick answer !

What to you mean exactly by "One thing you could look at is to see if the XCode project is being generated correctly by searching for instances of QCAR..." ?

I precise that the project compiles fine (so it links indeed with QCAR libraries) but the error is detected at runtime.

Thanks for your support.

Christophe.

Executing QCAR with a mono dll (System.Web.Extensions.dll) on IO

June 26, 2013 - 9:03am #2

Hard to say for sure, but it looks like there is some incompatibility between the dll and Vuforia - not sure why, or what you can do about it.

One thing you could look at is to see if the XCode project is being generated correctly by searching for instances of QCAR...

 

N

Log in or register to post comments