cseverino / openmeta

Automatically exported from code.google.com/p/openmeta
1 stars 0 forks source link

Accessing non-tagged file causes bus error #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using OpenMeta class (in OpenMeta.h/m) and call +[OpenMeta 
getUserTags:errorCode:] to get 
tags attached to file.
Then, if the file isn't tagged, the method is expected to return error code as 
return value, but 
actually it cause SIGBUS.
I think it isn't right behavior...
( Once tagged and after untagged file is treated rightly.)

Original issue reported on code.google.com by s.takeba...@gmail.com on 31 Jan 2009 at 2:07

GoogleCodeExporter commented 9 years ago
Sounds not good! - Are you also using the OpenMetaBackup.h/.m files in your 
project?
--Tom

Original comment by tom.ande...@gmail.com on 5 Feb 2009 at 1:24

GoogleCodeExporter commented 9 years ago
Yes, I'm also using OpenMetaBackup.h/m, and it seems working well.

Original comment by s.takeba...@gmail.com on 6 Feb 2009 at 6:29

GoogleCodeExporter commented 9 years ago
I think that the problem was in the way I handled errors. The latest release 
uses NSError, and the NSError is 
always optional. I think I had a dreference nil problem that you hit for the 
crash you describe. Please download 
the 1.1 code (revision 10). Also note that the API changed from NSURLs to Paths.

Original comment by tom.ande...@gmail.com on 13 Mar 2009 at 3:52

GoogleCodeExporter commented 9 years ago

Original comment by tom.ande...@gmail.com on 13 Mar 2009 at 3:55