Re: ObexSample
Re: ObexSample
- Subject: Re: ObexSample
- From: Robert Nicholson <email@hidden>
- Date: Thu, 26 Dec 2002 09:43:24 +0700
Hi I thought I'd try this too.
so, with my T68i. after I've paired via Serial Port 1 and when I hit
"Connect" I get
**********
Date/Time: 2002-12-26 09:27:34 +0700
OS Version: 10.2.3 (Build 6G30)
Host: Robert-Nicholsons-Computer.local.
Command: OBEXSample
PID: 448
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x0000002f
Thread 0 Crashed:
#0 0x9068ba50 in objc_msgSend
#1 0x00002eac in -[MyWindow buttonOBEXConnectClicked:]
(MyWindow.m:166)
#2 0x930f90e4 in -[NSApplication sendAction:to:from:]
#3 0x93119868 in -[NSControl sendAction:to:]
#4 0x9315dfac in -[NSCell _sendActionFrom:]
#5 0x930f2ad4 in -[NSCell trackMouse:inRect:ofView:untilMouseUp:]
#6 0x9315dbcc in -[NSButtonCell
trackMouse:inRect:ofView:untilMouseUp:]
#7 0x9312d504 in -[NSControl mouseDown:]
#8 0x930c0888 in -[NSWindow sendEvent:]
#9 0x930a8788 in -[NSApplication sendEvent:]
#10 0x930b1608 in -[NSApplication run]
#11 0x9315f6b8 in NSApplicationMain
#12 0x00002940 in main (main.m:48)
#13 0x000026c4 in _start (crt.c:267)
#14 0x00002544 in start
Thread 1:
#0 0x90014d28 in syscall_thread_switch
#1 0x907f4304 in +[NSThread sleepUntilDate:]
#2 0x93081694 in -[NSUIHeartBeat _heartBeatThread:]
#3 0x9081cd38 in forkThreadForFunction
#4 0x90020d48 in _pthread_body
PPC Thread State:
srr0: 0x9068ba50 srr1: 0x0200f030 vrsave: 0x00000000
xer: 0x00000000 lr: 0x00002eac ctr: 0x9068ba3c mq: 0x00000000
r0: 0x014e4990 r1: 0xbfffeb70 r2: 0x24000420 r3: 0x014e4990
r4: 0x000077ec r5: 0x00000000 r6: 0x00000000 r7: 0x0000755c
r8: 0x001d3dc0 r9: 0x00000000 r10: 0x00000001 r11: 0x000080a4
r12: 0x0000000f r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
r16: 0xa30726a8 r17: 0xa30a26a8 r18: 0xa30a26a8 r19: 0xa30a26a8
r20: 0x00000000 r21: 0xa30a26a8 r22: 0x00000000 r23: 0x001d3dc0
r24: 0xa30a26a8 r25: 0x00000000 r26: 0x000747a0 r27: 0x000747a0
r28: 0x00007698 r29: 0x000747a0 r30: 0xbfffeb70 r31: 0x930f907c
**********
Date/Time: 2002-12-26 09:32:41 +0700
OS Version: 10.2.3 (Build 6G30)
Host: Robert-Nicholsons-Computer.local.
Command: OBEXSample
PID: 460
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x0000002f
Thread 0 Crashed:
#0 0x9068ba50 in objc_msgSend
#1 0x00002eac in -[MyWindow buttonOBEXConnectClicked:]
(MyWindow.m:166)
#2 0x930f90e4 in -[NSApplication sendAction:to:from:]
#3 0x93119868 in -[NSControl sendAction:to:]
#4 0x9315dfac in -[NSCell _sendActionFrom:]
#5 0x930f2ad4 in -[NSCell trackMouse:inRect:ofView:untilMouseUp:]
#6 0x9315dbcc in -[NSButtonCell
trackMouse:inRect:ofView:untilMouseUp:]
#7 0x9312d504 in -[NSControl mouseDown:]
#8 0x930c0888 in -[NSWindow sendEvent:]
#9 0x930a8788 in -[NSApplication sendEvent:]
#10 0x930b1608 in -[NSApplication run]
#11 0x9315f6b8 in NSApplicationMain
#12 0x00002940 in main (main.m:48)
#13 0x000026c4 in _start (crt.c:267)
#14 0x00002544 in start
Thread 1:
#0 0x90014d28 in syscall_thread_switch
#1 0x907f4304 in +[NSThread sleepUntilDate:]
#2 0x93081694 in -[NSUIHeartBeat _heartBeatThread:]
#3 0x9081cd38 in forkThreadForFunction
#4 0x90020d48 in _pthread_body
PPC Thread State:
srr0: 0x9068ba50 srr1: 0x0200f030 vrsave: 0x00000000
xer: 0x00000000 lr: 0x00002eac ctr: 0x9068ba3c mq: 0x00000000
r0: 0x014832f0 r1: 0xbfffeb70 r2: 0x24000420 r3: 0x014832f0
r4: 0x000077ec r5: 0x00000000 r6: 0x00000000 r7: 0x0000755c
r8: 0x001d3d00 r9: 0x00000000 r10: 0x00000001 r11: 0x000080a4
r12: 0x0000000f r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
r16: 0xa30726a8 r17: 0xa30a26a8 r18: 0xa30a26a8 r19: 0xa30a26a8
r20: 0x00000000 r21: 0xa30a26a8 r22: 0x00000000 r23: 0x001d3d00
r24: 0xa30a26a8 r25: 0x00000000 r26: 0x000747a0 r27: 0x000747a0
r28: 0x00007698 r29: 0x000747a0 r30: 0xbfffeb70 r31: 0x930f907c
I'll now add a retain around OBEXSession withDevice.. and
withSDPServiceRecord
After the retain it doesn't crash.
I'd recommend alloc] initWithDevice] instead of the retain.
Ditto
initWithSDPServiceRecord
On Tuesday, December 24, 2002, at 11:44 PM, Bubba Giles wrote:
>
Tobi,
>
>
Try adding an (extra) retain on the OBEXSession object used in the
>
code.
>
We've had some changes to the retain/release mechanisms, so most likely
>
something that was 'getting lucky' with the previous compiler is now
>
being
>
exposed. If that doesn't work, let me know and I'll take a closer look.
>
Also, if you can enable crash logs in the Console.app and send it to
>
me,
>
it'll help determine what is going on.
>
>
Thanks,
>
>
Jason
>
email@hidden
>
>
> hi!
>
>
>
> I am trying to get ObexSample to work but i don't succeed.
>
>
>
> I just downloaded the Dec02 Dev Tools. I can compile and run obex
>
> sample and discover my phone ( a simens s55 ), but that is all. Which
>
> service do I have to select in the device dialog?
>
>
>
> When I select e.g. OBEX something or Serial Port and press ok, nothing
>
> happens (even the device address isn"t filled in the TextField or is
>
> that intended?). When I press Connect then, the device displays a
>
> connection and Obex Sample crashes.
>
>
>
> On the other hand when I try to input the device address directly, the
>
> same problem appears: The phone itself displays a connection but then
>
> obexsample crashes.
>
>
>
> Has somebody an idea?
>
>
>
> thanx!
>
>
>
> Tobi
>
> _______________________________________________
>
> bluetooth-dev mailing list | email@hidden
>
> Help/Unsubscribe/Archives:
>
> http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
>
> Do not post admin requests to the list. They will be ignored.
>
_______________________________________________
>
bluetooth-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.