[MacRuby-devel] [MacRuby] #637: Segmentation fault error with NSSearchPathForDirectoriesInDomains function

2010-03-27 Thread MacRuby
#637: Segmentation fault error with NSSearchPathForDirectoriesInDomains function
-+--
 Reporter:  aldar...@…   |   Owner:  lsansone...@…  
 
 Type:  defect   |  Status:  new
 
 Priority:  major|   Milestone:  MacRuby 0.5
 
Component:  MacRuby  |Keywords:  
NSSearchPathForDirectoriesInDomains "Segmentation fault"
-+--
 Hello MacRuby Team,
 I have a segmentation fault error with in a macruby class.
 To reproduce this problem with macirb tape follow lines :
 {{{
 def function_test
   NSSearchPathForDirectoriesInDomains(NSDownloadsDirectory,
 NSUserDomainMask)
 end
 function_test
 }}}


 We should have the segmentation fault error.
 I reproduce this problem under an MacRuby Xcode Project.

 But if I use directly the
 "NSSearchPathForDirectoriesInDomains(NSDownloadsDirectory,
 NSUserDomainMask)", I don't have the error.

 Regards

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #637: Segmentation fault error with NSSearchPathForDirectoriesInDomains function

2010-03-27 Thread MacRuby
#637: Segmentation fault error with NSSearchPathForDirectoriesInDomains function
-+--
 Reporter:  aldar...@…   |   Owner:  lsansone...@…  
 
 Type:  defect   |  Status:  new
 
 Priority:  major|   Milestone:  MacRuby 0.5
 
Component:  MacRuby  |Keywords:  
NSSearchPathForDirectoriesInDomains "Segmentation fault"
-+--

Comment(by martinlagarde...@…):

 Hi!

 Since you set the Milestone to MacRuby 0.5, I assume that's the version
 you're using, right?

 With 0.6 (HEAD on trunk), I have no issue, so I would assume the problem
 is fixed already :-)

 {{{
 $> cat /tmp/test.rb
 framework 'Foundation'
 def function_test
   NSSearchPathForDirectoriesInDomains(NSDownloadsDirectory,
 NSUserDomainMask)
 end
 function_test
 $> macruby /tmp/test.rb
 /tmp/array.rb:3:in `function_test': wrong number of arguments (2 for 3)
 (ArgumentError)
 from /tmp/array.rb:1:in `'
 }}}

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel