Panther troubles
Panther troubles
- Subject: Panther troubles
- From: Alesh Slovak <email@hidden>
- Date: Fri, 31 Oct 2003 12:12:17 -0500
Hello,
The following code works fine on 10.1 and 10.2, but not in 10.3.
NSURL* url = [NSURL URLWithString:@"
http://www.pb0.com"];
id ClassHandle = [NSURLHandle URLHandleClassForURL:url];
NSURLHandle* urlHandle = [ClassHandle cachedHandleForURL:url];
[urlHandle resourceData];
if([urlHandle status] != NSURLHandleLoadSucceeded)
NSLog(@"Connection failed.");
else
NSLog(@"Connection succeeded.");
I am getting erratic behaviour. Sometimes it works fine, sometimes it
fails to connect, but mostly it just crashes.
I tried making a simple program which just connects and downloads data
from a URL using essentially the same code as above, and the results
are a little different than what occurs from within my program. For
example in the simple test app, connecting to
http://www.pb0.com works,
but connecting to
https://www.pb0.com, again, crashes the program.
Any insight would be very much appreciated, thank you.
Alesh
Crash log file:
Thread 0 Crashed:
#0 0x90831234 in objc_msgSend (objc_msgSend + 20)
#1 0x9274b38c in _CFNetConnectionResponseIsComplete
(_CFNetConnectionResponseIsComplete + 40)
#2 0x9274b34c in readFromConnection (readFromConnection + 372)
#3 0x92742090 in httpRequestRead (httpRequestRead + 256)
#4 0x901c3af0 in CFReadStreamRead (CFReadStreamRead + 384)
#5 0x90afcd54 in -[NSHTTPURLHandle loadInForeground]
(-[NSHTTPURLHandle loadInForeground] + 168)
#6 0x90afe934 in -[NSURLHandle resourceData] (-[NSURLHandle
resourceData] + 112)
#7 0x00003668 in -[CacheScrollView upload:] (-[CacheScrollView
upload:] + 108)
#8 0x92e779d0 in -[NSApplication sendAction:to:from:]
(-[NSApplication sendAction:to:from:] + 108)
#9 0x92e7e754 in -[NSControl sendAction:to:] (-[NSControl
sendAction:to:] + 96)
#10 0x92eb8958 in -[NSCell _sendActionFrom:] (-[NSCell
_sendActionFrom:] + 156)
#11 0x92e58470 in -[NSCell trackMouse:inRect:ofView:untilMouseUp:]
(-[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 1020)
#12 0x92ec9558 in -[NSButtonCell
trackMouse:inRect:ofView:untilMouseUp:] (-[NSButtonCell
trackMouse:inRect:ofView:untilMouseUp:] + 564)
#13 0x92e8e7bc in -[NSControl mouseDown:] (-[NSControl mouseDown:] +
520)
#14 0x92e02c78 in -[NSWindow sendEvent:] (-[NSWindow sendEvent:] +
4324)
#15 0x92df534c in -[NSApplication sendEvent:] (-[NSApplication
sendEvent:] + 3772)
#16 0x92dfd754 in -[NSApplication run] (-[NSApplication run] + 576)
#17 0x92eb9a1c in NSApplicationMain (NSApplicationMain + 464)
#18 0x00002fc0 in _start (crt.c:267)
#19 0x00002e40 in start (start + 48)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.