English 中文(简体)
iPad 当使用CFURLDestroyResource时,申请便被坠毁。
原标题:iPad App became crashed when use CFURLDestroyResource
  • 时间:2010-12-09 08:55:57
  •  标签:
  • iphone
  • ftp

我使用该法典删除FTP链接的档案。

url = [[NSURL alloc] initWithString:@"ftp://sikmac3:remuza@localhost/Test.php"];
CFURLRef urlRef;
urlRef = (CFURLRef) url;
Boolean test = CFURLDestroyResource(urlRef, status);
if(test){
    NSLog(@"deletion success");
}else{
    NSLog(@"deletion failed");
}

CFRelease(urlRef);
[url release];

the file was deleted. but application became crashed/ terminated immediately.

任何人都知道这一案件。 我如何解决这一问题?

最佳回答

而用的是:

SInt32 status = 0;
Boolean test = CFURLDestroyResource(urlRef, &status);

你们必须把一个点推到一个有效的SInt32,在那个地方,这一功能可以回来。

问题回答

暂无回答




相关问题
What is the simplest way to create my own FTP server?

What is the simplest way to create my own FTP server in C#? Some of the folders will be virtual folders. The authentication should be from a SQL Server database, which includes tables of the ASP.NET ...

FTP In/Out Folder Name Best Practices

What best practices (if any) do you adhere to regarding setting up outgoing and incoming folders for your FTP clients? We typically use "outgoing" and "incoming", but no matter how you phrase the ...

Using TCPClient with RAW FTP to retrieve file

I get the following message back when trying to retrieve a file using TCPClient and RAW FTP: 425 Failed to establish connection. I connect using : using (TcpClient client = new TcpClient("...

Retrieving a List of Files from an FTP server in C#

I m trying to retrieve a list of files from an FTP server, but I m getting some weird non-ASCII responses. Here is the code that I am using: public string[] getFileList(string mask) { if(!...

FTP error on Quit command

I m using a ftp library that causes an error sending the quit command. It seems that the character before QUIT is not recognized. I took a look at the code but didn t find anything. 500 ?QUIT : ...

Passive FTP Timeout while using WinINet

I m trying to ftp a file using passive ftp but I get a timeout (12002) when the put command is called. I m able to use passive ftp with other ftp sites but not this new one. I ve tried this using ...

热门标签