Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / November 2006

Tip: Looking for answers? Try searching our database.

Uncatchable exception with getfiles method running v1 cf on ce.net 5.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RobGSCL - 28 Nov 2006 08:16 GMT
I have an application that runs sucessfully on ce.net 4.x.  When I run
it on ce.net 5.0, it throws an exception on directory.getfiles.  For
some reason, the exception won't get trapped.  Has anyone else seen
this?
<ctacke/> - 28 Nov 2006 14:28 GMT
Showing us the faulting code would probably help those of us who don't read
minds.

Signature

Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--

>I have an application that runs sucessfully on ce.net 4.x.  When I run
> it on ce.net 5.0, it throws an exception on directory.getfiles.  For
> some reason, the exception won't get trapped.  Has anyone else seen
> this?
RobGSCL - 28 Nov 2006 16:37 GMT
lol.  Sorry:

  Private Sub cleanTempDir(Optional ByVal Tpath As String = "\Temp",
Optional ByVal Tfilter As String = "*.TMP")
       Try
           If Right(Tpath, 1) <> "\" Then Tpath = Tpath & "\"
           Dim Tfiles() As String = Directory.GetFiles(Tpath, Tfilter)
'<-here's where it bombs
           Dim Tfile As String
           For Each Tfile In Tfiles
               Try
                   File.Delete(Tfile)
               Catch ex As Exception
               End Try
           Next Tfile
       Catch ioex As IOException
       Catch ex As Exception

       End Try

   End Sub

> Showing us the faulting code would probably help those of us who don't read
> minds.
[quoted text clipped - 10 lines]
> > some reason, the exception won't get trapped.  Has anyone else seen
> > this?
RobGSCL - 29 Nov 2006 21:30 GMT
ttt

> lol.  Sorry:
>
[quoted text clipped - 32 lines]
> > > some reason, the exception won't get trapped.  Has anyone else seen
> > > this?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.