[Mono-bugs] [Bug 696608] New: Setting FileInfo.CreationTime exits

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri May 27 09:42:08 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=696608

https://bugzilla.novell.com/show_bug.cgi?id=696608#c0


           Summary: Setting FileInfo.CreationTime exits
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 1.2.0
          Platform: i386
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jqdennis at ra.rockwell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like
Gecko) Ubuntu/11.04 Chromium/11.0.696.68 Chrome/11.0.696.68 Safari/534.24

Setting the FileInfo.CreationTime of a file cause Mono to abruptly and silently
exit the application being developed.

Reproducible: Always

Steps to Reproduce:
1.FileInfo fi = new FileInfo(urfile);
2.fi.CreationTime = <a DateTime object>
3.
Actual Results:  
Debug exited silently

Expected Results:  
Set File CreationTime, as it does in Windows using C# Express

                FileInfo fi;
                DateTime dt;
                string nm;
                foreach(string f in files) {
                    fi = new FileInfo(f);
                    dt = fi.CreationTime;
                    nm = dt.ToString("yyyyMMdd-hhmmss");
                    fi.MoveTo(s + nm + ".JPG");
                    fi = new FileInfo(s + nm + ".JPG");
                    fi.CreationTime = dt;                
                }

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


More information about the mono-bugs mailing list