Results 1 to 4 of 4

Thread: Ice on Mono on Android

  1. #1
    AlanR is offline Registered User
    Name: Alan Raynaud
    Organization: Egidium Technologies
    Project: Integrated Security Automation Platform
    Join Date
    Dec 2011
    Posts
    2

    Ice on Mono on Android

    Hello,

    there is my problem :

    We have developped an application using Mono. The desktop version works perfectly well. However, when we ported it on Android, we had some problems.

    Most of the application and Ice functionnalities are working. But whenever we try to send 'float' or 'double' using Ice, it fails. There is the error message at runtime :

    Code:
    NullReferenceException: Object reference not set to an instance of an object
      at IceInternal.ByteBuffer.putFloat (Single val) [0x00000] in <filename unknown>:0 
       at IceInternal.BasicStream.writeFloat (Single v) [0x00000] in <filename unknown>:0 
       at Module.ItfEventsPrxHelper.begin_sendfunction (Single f, System.Collections.Generic.Dictionary`2 ctx__, Boolean explicitContext__, Ice.AsyncCallback cb__, System.Object cookie__) [0x00000] in <filename unknown>:0 
       at Module.ItfEventsPrxHelper.begin_sendfunction (Single f) [0x00000] in <filename unknown>:0 
       at MyClass.MyFunction(float f) [0x00000] in <filename unknown>:0
    This very same function works perfectly well on desktop platforms.

    Also, we're still using Ice 3.4.1. Could it be related?

  2. #2
    mes's Avatar
    mes
    mes is online now ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    Hi Alan,

    Welcome to the forum.

    Did you compile the Ice assembly with MANAGED=yes?

    Regards,
    Mark

  3. #3
    bernard's Avatar
    bernard is online now ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hello Alan,

    Looking at the code for IceInternal.ByteBuffer.putFloat, it's most likely a managed vs unmanaged code issue.

    The Ice DLL included in our binary distribution incorporates some unmanaged code, and it looks like it does not work with Mono for Android. You should build your own managed Ice DLL, as described in the INSTALL.MONO included in the Ice source distribution.

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  4. #4
    AlanR is offline Registered User
    Name: Alan Raynaud
    Organization: Egidium Technologies
    Project: Integrated Security Automation Platform
    Join Date
    Dec 2011
    Posts
    2
    Hello,

    You were right. After we built our own Ice DLL, with the option MANAGED = yes, our Android application started working.

    Thanks a lot,
    Alan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. about Mono & ICE
    By mathgl in forum Projects
    Replies: 3
    Last Post: 12-16-2011, 08:22 AM
  2. Ice & Mono - exepath and configuration
    By JensAernouts in forum Help Center
    Replies: 16
    Last Post: 03-16-2011, 03:32 PM
  3. Ice for Android 0.2.0 released
    By mes in forum Announcements
    Replies: 0
    Last Post: 02-08-2011, 04:32 PM
  4. performance about ICE on mono
    By mathgl in forum Help Center
    Replies: 1
    Last Post: 01-13-2011, 01:29 PM
  5. Mono 1.2.6 and Ice
    By kovacm in forum Bug Reports
    Replies: 24
    Last Post: 12-26-2007, 06:56 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •