I am having some trouble reading a Mac Problem Report. I was hoping someone out there with a little more Mac experience could help out.

Our Java program seems to be crashing on a thread that is calling JVM_GetLastErrorString, which doesn't make a lot of sense to me.

Our Java program starts and runs great, but on calling System.exit(0), it crashes (Mac says "this program has quit unexpectedly"). This happens reliably after having established a connection to a USB device that implements InputStream and OutputStream. I imagine it has to do with the driver or my code accessing the driver, but I can't find enough details to start debugging the main Java program, or the USB user-space driver (a .jnilib file).

Are there any clues in this Problem report that I am missing?

Thanks in advance!

OS Version:     10.4.7 (Build 8J2135a)
Report Version: 4

Command: iCapRM
Path:    /Applications/iCapReleaseMeter/iCap Release Meter.app/Contents/MacOS/iCapRM
Parent:  WindowServer [60]

Version: ??? (1.1.0)

PID:    271
Thread: 2

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

8< --- snip ----

Thread 2 Crashed:
0   libjvm.dylib                       0x9a69c791 JVM_GetLastErrorString + 9633
1   libjvm.dylib                       0x9a57a22e JNI_CreateJavaVM_Impl + 53168
2   libjvm.dylib                       0x9a57a183 JNI_CreateJavaVM_Impl + 52997
3   libjvm.dylib                       0x9a57a0a9 JNI_CreateJavaVM_Impl + 52779
4   libSystem.B.dylib                  0x90024b07 _pthread_body + 84

8< --- snip ----

Thread 20:
0   <<00000000>>     0x00000000 0 + 0
1   libNativeMacUSBDriver.jnilib       0x1a0f7064 IS_close + 28 (NativeMacUSBDriver.c:732)
2   libNativeMacUSBDriver.jnilib       0x1a0f7352 Java_releaseMeter_sdk_comm_nativeImpl_NativeMacUSBDriver_close + 17 (NativeMacUSBDriver.c:842)
3   <<00000000>>     0x0457a1c1 0 + 72851905
4   <<00000000>>     0x04574913 0 + 72829203
5   <<00000000>>     0x04574c19 0 + 72829977
6   <<00000000>>     0x04574913 0 + 72829203
7   <<00000000>>     0x04574913 0 + 72829203
8   <<00000000>>     0x04574913 0 + 72829203
9   <<00000000>>     0x04574913 0 + 72829203
10  <<00000000>>     0x04574913 0 + 72829203
11  <<00000000>>     0x0457215d 0 + 72819037
12  libjvm.dylib                       0x9a5e2e4e jio_snprintf + 397272
13  libjvm.dylib                       0x9a5ef2ef JVM_StartThread + 2323
14  libjvm.dylib                       0x9a5ef201 JVM_StartThread + 2085
15  libjvm.dylib                       0x9a5ef151 JVM_StartThread + 1909
16  libjvm.dylib                       0x9a5ef07d JVM_StartThread + 1697
17  libjvm.dylib                       0x9a57a0a9 JNI_CreateJavaVM_Impl + 52779
18  libSystem.B.dylib                  0x90024b07 _pthread_body + 84

8< --- snip ----


Binary Images Description:
    0x1000 -     0x2fff iCapRM ??? (1.1.0)    /Applications/iCapReleaseMeter/iCap Release Meter.app/Contents/MacOS/iCapRM
 0x1754000 -  0x175bfff com.apple.iokit.IOUSBLib 2.5.0    /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle/Contents/MacOS/IOUSBLib
0x19cc3000 - 0x19cc5fff com.apple.LiveType.component 2.1.1    /Library/QuickTime/LiveType.component/Contents/MacOS/LiveType
0x19e4a000 - 0x19eadfff com.apple.LiveType.framework 2.1.1    /System/Library/PrivateFrameworks/LiveType.framework/Versions/A/LiveType
0x19ecc000 - 0x19f3dfff com.DivXInc.DivXDecoder 6.2.5    /Library/QuickTime/DivX Decoder.component/Contents/MacOS/DivX Decoder
0x1a0f4000 - 0x1a0f7fff libNativeMacUSBDriver.jnilib     /Users/carver/Library/Java/Extensions/libNativeMacUSBDriver.jnilib
0x8fe00000 - 0x8fe4cfff dyld 45.3    /usr/lib/dyld
0x90000000 - 0x9016efff libSystem.B.dylib     /usr/lib/libSystem.B.dylib
0x901be000 - 0x901c0fff libmathCommon.A.dylib     /usr/lib/system/libmathCommon.A.dylib
0x901c2000 - 0x901fefff com.apple.CoreText 1.1.1 (???)    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x90225000 - 0x902fafff ATS     /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x9031a000 - 0x9076afff com.apple.CoreGraphics 1.258.33 (???)    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x90801000 - 0x908c9fff com.apple.CoreFoundation 6.4.6 (368.27)    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x90907000 - 0x90907fff com.apple.CoreServices 10.4 (???)    /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x90909000 - 0x909fcfff libicucore.A.dylib     /usr/lib/libicucore.A.dylib
0x90a4c000 - 0x90acbfff libobjc.A.dylib     /usr/lib/libobjc.A.dylib
0x90af4000 - 0x90b57fff libstdc++.6.dylib     /usr/lib/libstdc++.6.dylib
0x90bc6000 - 0x90bcdfff libgcc_s.1.dylib     /usr/lib/libgcc_s.1.dylib
0x90bd2000 - 0x90c42fff com.apple.framework.IOKit 1.4.4 (???)    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90c57000 - 0x90c69fff libauto.dylib     /usr/lib/libauto.dylib
0x90c6f000 - 0x90f14fff com.apple.CoreServices.CarbonCore 682.12    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90f57000 - 0x90fbffff com.apple.CoreServices.OSServices 4.1    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x90ff7000 - 0x91035fff com.apple.CFNetwork 129.16    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x91047000 - 0x91057fff com.apple.WebServices 1.1.3 (1.1.0)    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x91062000 - 0x910e0fff com.apple.SearchKit 1.0.5    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x91115000 - 0x91133fff com.apple.Metadata 10.4.4 (121.36)    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x9113f000 - 0x9114dfff libz.1.dylib     /usr/lib/libz.1.dylib
0x91150000 - 0x91306fff com.apple.security 4.4.1 (27569)    /System/Library/Frameworks/Security.framework/Versions/A/Security
0x913f5000 - 0x913fdfff com.apple.DiskArbitration 2.1    /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x91404000 - 0x9142afff com.apple.SystemConfiguration 1.8.6    /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x9143c000 - 0x91443fff libbsm.dylib     /usr/lib/libbsm.dylib
0x91447000 - 0x914c0fff com.apple.audio.CoreAudio 3.0.4    /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x9150e000 - 0x9150efff com.apple.ApplicationServices 10.4 (???)    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x91510000 - 0x9153bfff com.apple.AE 314 (313)    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x9154e000 - 0x91622fff com.apple.ColorSync 4.4.6    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x9165b000 - 0x916d8fff com.apple.print.framework.PrintCore 4.6 (177.13)    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x91705000 - 0x917affff com.apple.QD 3.10.20 (???)    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x917d5000 - 0x91820fff com.apple.HIServices 1.5.2 (???)    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x9183f000 - 0x91855fff com.apple.LangAnalysis 1.6.3    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x91861000 - 0x9187bfff com.apple.FindByContent 1.5    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x91885000 - 0x918c2fff com.apple.LaunchServices 181    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x918d6000 - 0x918e1fff com.apple.speech.synthesis.framework 3.4    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x918e8000 - 0x91920fff com.apple.ImageIO.framework 1.4.8    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x91932000 - 0x919e4fff libcrypto.0.9.7.dylib     /usr/lib/libcrypto.0.9.7.dylib
0x91a2a000 - 0x91a40fff libcups.2.dylib     /usr/lib/libcups.2.dylib
0x91a45000 - 0x91a61fff libJPEG.dylib     /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x91a66000 - 0x91ac4fff libJP2.dylib     /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x91ad4000 - 0x91ad8fff libGIF.dylib     /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x91ada000 - 0x91b35fff libRaw.dylib     /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib
0x91b39000 - 0x91b76fff libTIFF.dylib     /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x91b7c000 - 0x91b96fff libPng.dylib     /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x91b9b000 - 0x91b9dfff libRadiance.dylib     /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x91b9f000 - 0x91b9ffff com.apple.Accelerate 1.2.2 (Accelerate 1.2.2)    /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x91ba1000 - 0x91c2bfff com.apple.vImage 2.4    /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x91c32000 - 0x91c32fff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2)    /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x91c34000 - 0x91c79fff libvMisc.dylib     /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x91c81000 - 0x91ca6fff libvDSP.dylib     /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x91cad000 - 0x92230fff libBLAS.dylib     /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x9226d000 - 0x9261ffff libLAPACK.dylib     /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x9264c000 - 0x926d0fff com.apple.DesktopServices 1.3.4    /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x9270c000 - 0x9293efff com.apple.Foundation 6.4.6 (567.27)    /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x92a4a000 - 0x92b28fff libxml2.2.dylib     /usr/lib/libxml2.2.dylib
0x92b45000 - 0x92c32fff libiconv.2.dylib     /usr/lib/libiconv.2.dylib
0x92c42000 - 0x92c59fff libGL.dylib     /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x92c64000 - 0x92cbbfff libGLU.dylib     /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x92ccf000 - 0x92ccffff com.apple.Carbon 10.4 (???)    /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x92cd1000 - 0x92ce1fff com.apple.ImageCapture 3.0.4    /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x92cef000 - 0x92cf7fff com.apple.speech.recognition.framework 3.5    /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x92cfd000 - 0x92d02fff com.apple.securityhi 2.0.1 (24742)    /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x92d08000 - 0x92d99fff com.apple.ink.framework 101.2.1 (71)    /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x92dad000 - 0x92db0fff com.apple.help 1.0.3 (32.1)    /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x92db3000 - 0x92dd0fff com.apple.openscripting 1.2.5 (???)    /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x92de0000 - 0x92de6fff com.apple.print.framework.Print 5.1 (192.3)    /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x92dec000 - 0x92e4ffff com.apple.htmlrendering 66.1 (1.1.3)    /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x92e73000 - 0x92eb4fff com.apple.NavigationServices 3.4.4 (3.4.3)    /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x92edb000 - 0x92ee8fff com.apple.audio.SoundManager 3.9.1    /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x92eef000 - 0x92ef4fff com.apple.CommonPanels 1.2.3 (73)    /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x92ef9000 - 0x931ebfff com.apple.HIToolbox 1.4.8 (???)    /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x932f0000 - 0x932fbfff com.apple.opengl 1.4.10    /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x93324000 - 0x93328fff com.apple.JavaVM 11.4.0    /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
0x9336a000 - 0x9336afff com.apple.Cocoa 6.4 (???)    /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x9336c000 - 0x93a25fff com.apple.AppKit 6.4.7 (824.41)    /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x93da6000 - 0x93e20fff com.apple.CoreData 90    /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x93e59000 - 0x93f1afff com.apple.audio.toolbox.AudioToolbox 1.4.3    /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x93f5a000 - 0x93f5afff com.apple.audio.units.AudioUnit 1.4.2    /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x93f5c000 - 0x9410afff com.apple.QuartzCore 1.4.8    /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x94158000 - 0x94199fff libsqlite3.0.dylib     /usr/lib/libsqlite3.0.dylib
0x941a1000 - 0x941dbfff libGLImage.dylib     /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x94356000 - 0x94365fff libCGATS.A.dylib     /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x9436c000 - 0x94377fff libCSync.A.dylib     /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x943c3000 - 0x943ddfff libRIP.A.dylib     /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x943e3000 - 0x9469cfff com.apple.QuickTime 7.1.3    /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
0x96526000 - 0x96526fff com.apple.vecLib 3.2.2 (vecLib 3.2.2)    /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x96b6e000 - 0x96b73fff com.apple.agl 2.5.9 (AGL-2.5.9)    /System/Library/Frameworks/AGL.framework/Versions/A/AGL
0x97660000 - 0x9766ffff com.apple.JavaApplicationLauncher 11.4.0    /System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Versions/A/JavaApplicationLauncher
0x97674000 - 0x97675fff liblauncher.jnilib     /System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Versions/A/Resources/liblauncher.jnilib
0x97e37000 - 0x98921fff com.apple.QuickTimeComponents.component 7.1.3    /System/Library/QuickTime/QuickTimeComponents.component/Contents/MacOS/QuickTimeComponents
0x9a536000 - 0x9a536fff libcmm.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libcmm.jnilib
0x9a56c000 - 0x9a89bfff libjvm.dylib     /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libjvm.dylib
0x9a8c5000 - 0x9a8e0fff libjava.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libjava.jnilib
0x9a8eb000 - 0x9a8f2fff libverify.dylib     /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libverify.dylib
0x9a930000 - 0x9aabcfff libawt.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libawt.jnilib
0x9ab27000 - 0x9ab70fff libfontmanager.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libfontmanager.jnilib
0x9ab8d000 - 0x9abaffff libjpeg.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libjpeg.jnilib
0x9abe6000 - 0x9abf4fff liblaf.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/liblaf.jnilib
0x9abfe000 - 0x9ac08fff libnet.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libnet.jnilib
0x9ac0b000 - 0x9ac0efff libnio.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libnio.jnilib
0x9ac13000 - 0x9ac5afff libsuncmm.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libsuncmm.jnilib
0x9ac63000 - 0x9ac6efff libzip.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libzip.jnilib

Model: Macmini1,1, BootROM MM11.004B.B00, 1 processors, Intel Core Solo, 1.5 GHz, 512 MB
Graphics: Intel GMA 950, GMA 950, Built-In, spdisplays_integrated_vram
Memory Module: DIMM0/BANK 0, 256 MB, DDR2 SDRAM, 667 MHz
Memory Module: DIMM1/BANK 1, 256 MB, DDR2 SDRAM, 667 MHz
AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x86), 0.1.27
Bluetooth: Version 1.7.5f10, 2 service, 1 devices, 1 incoming serial ports
Network Service: Built-in Ethernet, Ethernet, en0
Serial ATA Device: FUJITSU MHV2060BHPL, 55.89 GB
Parallel ATA Device: MATSHITADVD-R   UJ-846
USB Device: USB-PS/2 Optical Mouse, Logitech, Up to 1.5 Mb/sec, 500 mA
USB Device: Hub in Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 500 mA
USB Device: Communication, Up to 12 Mb/sec, 100 mA
USB Device: Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 250 mA
USB Device: Bluetooth HCI, Up to 12 Mb/sec, 500 mA
USB Device: IR Receiver, Apple Computer, Inc., Up to 12 Mb/sec, 500 mA

Are you disengaging the connection with the USB device before exiting? With USB flash drives, the OS likes to complain sometimes if you remove it without properly "ejecting" it first. This could be a similar issue. I'm just taking a guess here.

Are you able to test it on other Mac systems or do you only have the one? If the program can be packaged up I could test it on my Mac and see if I get the same problems.

I have requested that it close. I have now narrowed it down to the USB driver itself, which seems to have some sort of nullpointer access or buffer overflow. As a Java programmer, debugging these in XCode seem to be next to impossible, compared to the relatively simple debugging by Exception traces...

Anyway, as it's not really Java related (although the Mac trace sure made it look that way), I'll keep playing with it and then if I have more questions, post up to an Objective C forum (I hate writing drivers, even in user-space...).

Thanks for your help...

Are you disengaging the connection with the USB device before exiting? With USB flash drives, the OS likes to complain sometimes if you remove it without properly "ejecting" it first. This could be a similar issue. I'm just taking a guess here.

Are you able to test it on other Mac systems or do you only have the one? If the program can be packaged up I could test it on my Mac and see if I get the same problems.

This article has been dead for over six months. Start a new discussion instead.