[Mono-bugs] [Bug 547556] New: Calling Path.GetRandomFileName() causes a NullReferenceException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 16 05:27:38 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=547556


           Summary: Calling Path.GetRandomFileName() causes a
                    NullReferenceException
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: x86
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Tools
        AssignedTo: gnorton at novell.com
        ReportedBy: o.watson at bolton.ac.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.3)
Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)

When attempting to call 'Path.GetRandomFileName()' within a MonoTouch project,
the following error is generated:

"Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object at System.IO.Path.GetRandomFileName ()..."

If the '--nolink' flag is added to the mtouch arguments, the call to
GetRandomFileName() succeeds with no error.


Reproducible: Always

Steps to Reproduce:
1. Open / create a MonoTouch Project
2. Ensure you are using System.IO
3. Call Path.GetRandomFileName();
Actual Results:  
The following error is generated:

"Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object at System.IO.Path.GetRandomFileName ()..."

Expected Results:  
Generated a random file name.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list