Rolf Bjarne Kvinge wrote
> 
> On Fri, Jul 27, 2012 at 6:27 PM, Nscavezze <nate.scavezze@> wrote:
> 
>> 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
>>
> 
>> It looks like the library is trying to write to a deleted/invalid file
>> descriptor. My guess is that it's because something is wrong in the
>> bindings - is this method trying to write to a file descriptor you
>> provided?
> 
>> Rolf
> 
> Here are my bindings and the obj-c header files I don't see anything wrong
> anyone else see anything wrong?
> 
>  https://gist.github.com/3217621 Bindings 
>  https://gist.github.com/3217626 ScanditSDKBarcodePicker 
>  https://gist.github.com/3217632 ScanditSDKOverlayController 
> 
> The place it's failing has this flow according to the scandit guys.
> The ScanditSDKVideoCaptureHelper will call a function in the
> ScanditSDKBarcodePicker, which will in turn call a function in the
> ScanditSDKOverlayController, which will then eventually call the
> ScanditSDKOverlayControllerDelegate
> 
> The ScanditSDKOverlayControllerDelegate is a protocol that  needs to be
> implemented in c# and set on the picker.
> 
> Once i have bound the protocol do i use it just like a interface?
> 
>>          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
>>
> 
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
> 



--
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-tp4656207p4656251.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