HighTechTalks DotNet Forums  

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

Dotnet Framework (Compact Framework) microsoft.public.dotnet.framework.compactframework


Discuss Uncatchable exception with getfiles method running v1 cf on ce.net 5.0 in the Dotnet Framework (Compact Framework) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
RobGSCL
 
Posts: n/a

Default Uncatchable exception with getfiles method running v1 cf on ce.net 5.0 - 11-28-2006 , 03:16 AM






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?


Reply With Quote
  #2  
Old   
 
Posts: n/a

Default Re: Uncatchable exception with getfiles method running v1 cf on ce.net 5.0 - 11-28-2006 , 09:28 AM






Showing us the faulting code would probably help those of us who don't read
minds.


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


"RobGSCL" <robgreenfield (AT) earthlink (DOT) net> wrote

Quote:
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?




Reply With Quote
  #3  
Old   
RobGSCL
 
Posts: n/a

Default Re: Uncatchable exception with getfiles method running v1 cf on ce.net 5.0 - 11-28-2006 , 11:37 AM



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


<ctacke/> wrote:
Quote:
Showing us the faulting code would probably help those of us who don't read
minds.


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


"RobGSCL" <robgreenfield (AT) earthlink (DOT) net> wrote in message
news:1164701763.705506.204420 (AT) 14g2000cws (DOT) googlegroups.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?



Reply With Quote
  #4  
Old   
RobGSCL
 
Posts: n/a

Default Re: Uncatchable exception with getfiles method running v1 cf on ce.net 5.0 - 11-29-2006 , 04:30 PM



ttt

RobGSCL wrote:
Quote:
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


ctacke/> wrote:
Showing us the faulting code would probably help those of us who don't read
minds.


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


"RobGSCL" <robgreenfield (AT) earthlink (DOT) net> wrote in message
news:1164701763.705506.204420 (AT) 14g2000cws (DOT) googlegroups.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?



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.