c# - System.ArgumentNullException in System.ni.dll - Xamarin IIF like VB.net -


answering own question couldn't find solution problem online.


error when running xamarin app using vs2013:

an exception of type 'system.argumentnullexception' occurred in system.ni.dll not handled in user code

it occurs on line:

windevice:

loadapplication(new app()); 

ios:

uiapplication.main(args, null, "appdelegate"); 

android:

loadapplication(new app()); 

you need make sure resources available, in case image missing:

icon = device.os == targetplatform.ios ? "slideout.png" : null; 

i thought image resource wasn't necessary because not targeting ios platform.

its reminiscent of vb.net's iif both sides evaluated (ie if statement not short-circuited).


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -