I am Trying to bind a Native Objective-C lib called 
http://www.scandit.com/support/getting-started-with-scandit-sdk-for-ios/
Scandit  it's going pretty well everything seems to be bound correctly and i
can get a view to appear for a 5 secs or so then the app crashes.  I spoke
with the Scandit guys and they said were it's crashing is were the app
starts to use a c++ lib.  here is the Link with statement

[assembly: LinkWith ("libscanditsdk-iphone-2.2.0.a", LinkTarget.ArmV6 |
LinkTarget.ArmV7 | LinkTarget.Simulator
                     ,ForceLoad = true, IsCxx=true
                     ,Frameworks="CoreVideo UIKit Foundation CoreGraphics
AudioToolbox AVFoundation CoreMedia QuartzCore SystemConfiguration
CoreLocation"
                     ,LinkerFlags="-lz -liconv"
                     )]

and here is the error I receive

Native stacktrace:

        0   TouchInspect                        0x01c3a0ed
mono_handle_native_sigsegv + 244
        1   TouchInspect                        0x01c2686b
mono_sigsegv_signal_handler + 130
        2   libsystem_c.dylib                   0x346f67ed _sigtramp + 48
        3   libsystem_c.dylib                   0x346adf9b flockfile + 10
        4   libsystem_c.dylib                   0x346c6563 fputc + 30
        5   TouchInspect                        0x000429d4
-[ScanditSDKVideoCaptureHelper
captureOutput:didOutputSampleBuffer:fromConnection:] + 194019
        6   TouchInspect                        0x00042b40
-[ScanditSDKVideoCaptureHelper
captureOutput:didOutputSampleBuffer:fromConnection:] + 194383
        7   TouchInspect                        0x00041dec
-[ScanditSDKVideoCaptureHelper
captureOutput:didOutputSampleBuffer:fromConnection:] + 190971
        8   TouchInspect                        0x00041694
-[ScanditSDKVideoCaptureHelper
captureOutput:didOutputSampleBuffer:fromConnection:] + 189091
        9   libsystem_c.dylib                   0x346ad735 _pthread_start + 320
        10  libsystem_c.dylib                   0x346ad5f0 thread_start + 8

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Any Ideas why it's crashing? and if not is there a way to get better logs
the Scandit guys says the lib has printf commands to log out errors to the
console.  but I don't see any.  any help would be greatly appreciated 



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/ScanditSDK-Binding-problems-the-app-crashes-when-the-objective-c-lib-tries-to-use-a-c-lib-tp4656207.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to