• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSURL Crashes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSURL Crashes


  • Subject: NSURL Crashes
  • From: Steve Gehrman <email@hidden>
  • Date: Sun, 17 Feb 2002 23:09:41 -0800

I'm creating a thread and calling URLWithString. If I launch the app
with MallocDebug I always get this crash. It works when not running
MallocDebug.

Is this a known bug? How can I get around this?

- (void)threadCall:(id)param
{
NSURL*myURL = [NSURL
URLWithString:@"http://www.cocoatech.com/version/SNAX.txt";];
}

SNAX accessed memory at 0x55555555 illegally. It probably tried to
dereference a pointer in freed memory.

Thread 4 Crashed:
#0 0x70003fcc in memmove
#1 0x706b5558 in _class_lookupMethodAndLoadCache
#2 0x706bac3c in objc_msgSend
#3 0x70824bd4 in +[NSURL URLWithString:relativeToURL:]
#4 0x70824bd4 in +[NSURL URLWithString:relativeToURL:]
#5 0x7082887c in +[NSURL URLWithString:]
#6 0x0009d0f8 in -[VersionCheckerThread doWorkerMethod:]
#7 0x0008c094 in -[ThreadWorker workerMethod:]
#8 0x70842358 in forkThreadForFunction
#9 0x7002054c in _pthread_body

--
Steve Gehrman
CocoaTech
email@hidden
http://www.cocoatech.com
_______________________________________________
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.

  • Prev by Date: iDisk access in Cocoa
  • Next by Date: multithreaded vs ...?
  • Previous by thread: Re: iDisk access in Cocoa
  • Next by thread: multithreaded vs ...?
  • Index(es):
    • Date
    • Thread