Click here to Skip to main content
15,918,706 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: problem with visual studio .net and the oledb namespace Pin
Dave Kreskowiak12-Jan-05 11:58
mveDave Kreskowiak12-Jan-05 11:58 
GeneralFile Delete problem in Windows Service Pin
P Holroyd11-Jan-05 11:02
P Holroyd11-Jan-05 11:02 
GeneralRe: File Delete problem in Windows Service Pin
Dave Kreskowiak11-Jan-05 15:47
mveDave Kreskowiak11-Jan-05 15:47 
GeneralRe: File Delete problem in Windows Service Pin
P Holroyd11-Jan-05 21:01
P Holroyd11-Jan-05 21:01 
GeneralRe: File Delete problem in Windows Service Pin
Dave Kreskowiak12-Jan-05 0:58
mveDave Kreskowiak12-Jan-05 0:58 
GeneralRe: File Delete problem in Windows Service Pin
Anonymous12-Jan-05 1:37
Anonymous12-Jan-05 1:37 
GeneralRe: File Delete problem in Windows Service Pin
P Holroyd12-Jan-05 1:46
P Holroyd12-Jan-05 1:46 
GeneralRe: File Delete problem in Windows Service Pin
Dave Kreskowiak12-Jan-05 11:51
mveDave Kreskowiak12-Jan-05 11:51 
Anonymous wrote:
I'm thinking you might be right because a local system service on a server will have greater access rights?

Not so. There is no rights difference between the SYSTEM accounts from one edition of Windows 2000 to the next. There ARE differences between the CDO libraries though.

Your code uses the .GetMessages function of the CDO DropDirectory CoClass. I'm suspecting that there is a difference between the versions installed on your systems. Specifically, I'm suspecting that .GetMessages() is not releasing it's file handles immediately while enumerating the message files. This would cause an "Access Denied" exception when you tried to delete the files. What you might want to try is calling the .Dispose() method on your iDropDirectory object before you delete the files in that folder.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: File Delete problem in Windows Service Pin
P Holroyd13-Jan-05 7:17
P Holroyd13-Jan-05 7:17 
GeneralRe: File Delete problem in Windows Service Pin
P Holroyd17-Jan-05 23:35
P Holroyd17-Jan-05 23:35 
GeneralSerial com port communication! Pin
Member 162670711-Jan-05 10:38
Member 162670711-Jan-05 10:38 
GeneralRe: Serial com port communication! Pin
Ritesh123411-Jan-05 21:21
Ritesh123411-Jan-05 21:21 
GeneralExcel Automation VB.Net (SQL Server) Question Pin
JZion11-Jan-05 5:57
JZion11-Jan-05 5:57 
Generalcopy & paste in VB6 Pin
Britnt711-Jan-05 4:32
Britnt711-Jan-05 4:32 
QuestionHow to integrate reporting service with vb.net Pin
Mekong River11-Jan-05 4:29
Mekong River11-Jan-05 4:29 
AnswerRe: How to integrate reporting service with vb.net Pin
Member 56585711-Jan-05 6:41
Member 56585711-Jan-05 6:41 
GeneralEasy Questions for CPians Pin
Sebastien Lachance11-Jan-05 4:17
Sebastien Lachance11-Jan-05 4:17 
GeneralRe: Easy Questions for CPians Pin
Dave Kreskowiak11-Jan-05 6:09
mveDave Kreskowiak11-Jan-05 6:09 
GeneralRe: Easy Questions for CPians Pin
Sebastien Lachance11-Jan-05 6:38
Sebastien Lachance11-Jan-05 6:38 
GeneralRe: Easy Questions for CPians Pin
Dave Kreskowiak11-Jan-05 9:18
mveDave Kreskowiak11-Jan-05 9:18 
GeneralRe: Easy Questions for CPians Pin
Sebastien Lachance12-Jan-05 2:34
Sebastien Lachance12-Jan-05 2:34 
GeneralRe: Easy Questions for CPians Pin
Dave Kreskowiak12-Jan-05 8:13
mveDave Kreskowiak12-Jan-05 8:13 
GeneralRe: Easy Questions for CPians Pin
Sebastien Lachance12-Jan-05 8:43
Sebastien Lachance12-Jan-05 8:43 
GeneralVBA richtextbox produces error Pin
littleGreenDude11-Jan-05 4:12
littleGreenDude11-Jan-05 4:12 
GeneralRe: VBA richtextbox produces error Pin
Dave Kreskowiak11-Jan-05 15:56
mveDave Kreskowiak11-Jan-05 15:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.