[Openroad-users] CreateDirectory Bug?

Kim Ginnerup kgi at bording.dk
Mon Nov 6 17:40:15 EST 2006


What I is it you will enhance ?

 

Kim

 

________________________________

Fra: openroad-users-bounces at peerlessit.com [mailto:openroad-users-bounces at peerlessit.com] På vegne af White, Paul
Sendt: 6. november 2006 02:45
Til: 'International OpenROAD Users'
Emne: Re: [Openroad-users] CreateDirectory Bug?

 

Lets make it an enhancement request. 
Who agrees? 

 

-----Original Message----- 
From: openroad-users-bounces at peerlessit.com [mailto:openroad-users-bounces at peerlessit.com]On Behalf Of Kim Ginnerup 
Sent: Saturday, November 04, 2006 7:51 PM 
To: International OpenROAD Users 
Subject: Re: [Openroad-users] CreateDirectory Bug? 

 

I think we have submitted this a long time back. 
It is regarded as a documentation bug. 

Kim 

-----Oprindelig meddelelse----- 
Fra: openroad-users-bounces at peerlessit.com [mailto:openroad-users-bounces at peerlessit.com] På vegne af gareth.2.edwards at bt.com

Sendt: 1. november 2006 16:21 
Til: openroad-users at peerlessit.com 
Emne: [Openroad-users] CreateDirectory Bug? 

OR4.1SP3, Win2000 

Hi All, 

Glad to see the list back Paul!  :o) 

I have a problem with the CreateDirectory() method, which seems to be a 
bug. Can someone confirm, or is it something I'm doing? 

Below is an extract from the code. It simply checks if the directory 
exists, if not, creates it. It does this, but if the directory does not 
exist, it creates it, but also returns an error after creation. Surely 
if it's created it, it would be success (ER_OK) - as per ORLR.pdf  PG 
467 
----- 
        /* 
        ** Check if the polling directory exists, if not, create it 
        */ 
        DirectoryExists = CurSession.DirectoryExists (Directory = 
CurObject.PollDirectory); 

        IF DirectoryExists = FALSE THEN 

                ReturnStatus = CurSession.CreateDirectory (Directory = 
CurObject.PollDirectory); 

                IF ReturnStatus = ER_FAIL THEN 

                        CurObject.MessageText = 'Create Failed!'; 
                        RETURN; 

                ENDIF; 
        ENDIF; 
----- 
I checked if it was because there was a space in the directory name, but 
with it removed, I still got the same results. As I did if it had a \ at 
the end of the directory or not. 

Just a matter of, not error checking the creation? (not happy about 
doing). 

 

Cheers, 
Gareth Edwards 

BT Global Services 
tel: +44 (0)131 345 4671 
email: gareth.2.edwards at bt.com 

 

_______________________________________________ 
Openroad-users mailing list 
Openroad-users at peerlessit.com 
http://peerlessit.com/mailman/listinfo/openroad-users 

_______________________________________________ 
Openroad-users mailing list 
Openroad-users at peerlessit.com 
http://peerlessit.com/mailman/listinfo/openroad-users 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://peerlessit.com/pipermail/openroad-users/attachments/20061106/d18e9d08/attachment.html 


More information about the Openroad-users mailing list