[Mono-bugs] [Bug 685275] New: Third-party lib works fine in Xcode but fails/crashes in Monotouch using Pinvoke

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 5 14:08:53 EDT 2011



           Summary: Third-party lib works fine in Xcode but fails/crashes
                    in Monotouch using Pinvoke
    Classification: Mono
           Product: MonoTouch
           Version: SVN
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Tools
        AssignedTo: gnorton at novell.com
        ReportedBy: tim at loqu8.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16


The library has an initialization function which I think is not being called
properly - either that, or memory isn't allocating as expected.  The behavior
from Xcode vs Monotouch is different.  Tried switching from HGlobal to
CoTaskMem to no avail.  It is possible that I am handling the memory
incorrectly in C#, but I think that is unlikely.

Reproducible: Always

Steps to Reproduce:
1. Initialize library
2. Call GetParam
Actual Results:  
errCode: jtTTS_ERR_NONE [GetExtBufSize]
    iSize: 538292
errCode: jtTTS_ERR_NONE [Init]
    dwHandle: 216166400
    extBuf: B4 FE E2 0C E0 1E 04 00 20 89 03 00 01 00 00 00 

  at (wrapper managed-to-native) PTMonotouch.x.jtTTS_GetParam
(ulong,PTMonotouch.jTTSParam,long&) <IL 0x00027, 0xffffffff>
  at PTMonotouch.AppDelegate.FinishedLaunching
(MonoTouch.UIKit.UIApplication,MonoTouch.Foundation.NSDictionary) [0x001a4] in
  at (wrapper runtime-invoke)
(object,intptr,intptr,intptr) <IL 0x00066, 0xffffffff>
  at (wrapper managed-to-native)
MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr)
<IL 0x0009f, 0xffffffff>
  at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x00038] in
  at MonoTouch.UIKit.UIApplication.Main (string[]) [0x00000] in
  at PTMonotouch.Application.Main (string[]) [0x00000] in
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object
(object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>

Expected Results:  
errCode: 3 [VOLUME]
errCode: 3 [CODEPAGE]
errCode: 0 [GetExtBufSize]
    iSize: 538292
errCode: 0 [Init]
    dwHandle: 172703744
    extBuf: B4 CE 4B 0A E0 1E 04 00 20 89 03 00 01 00 00 00 
errCode: 0 [VOLUME]
    Volume: 0
errCode: 0 [CODEPAGE]
    Codepage: 936

I need to send the attachment privately to Novell as it should not be
publically accessible.  Can you advise on how to do this?

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list