GPF with curdir()

GPF with curdir()

Postby don lowenstein » Tue Jan 10, 2006 9:40 pm

Has anyone else experienced a "random" GPF when calling curdir() ? If yes, is there a workaround for curdir()

xharbor .99.51
fwh 2.6
bcc 5.5
windows xp
windows xp64
Don Lowenstein
www.laapc.com
User avatar
don lowenstein
 
Posts: 197
Joined: Mon Oct 17, 2005 9:09 pm

Postby Antonio Linares » Wed Jan 11, 2006 3:17 pm

Don,

You may use FWH GetCurDir() instead of CurDir().
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby don lowenstein » Wed Jan 11, 2006 3:32 pm

Thank you. I will try.

FYI - the offending line of code that brought this to my attention was a call to FWH function lIsDir( pathspec )

here is your code from filename.prg

function lIsDir( cNewDir ) // Checks an existing directory

local cDir := CurDrive() + ":\" + CurDir()

I linked in my own lIsDir() function changing CurDir() to GetCurDir()

I will keep you posted regarding the GPF.
Don Lowenstein
www.laapc.com
User avatar
don lowenstein
 
Posts: 197
Joined: Mon Oct 17, 2005 9:09 pm

Postby Klaas den Dekker » Wed Jan 11, 2006 3:41 pm

I had this error for a long time using FW 2.6 + xHarbour 0.99.51 june.
Now I'm using FW 2.7 + latest xHarbour (also 0.99.51) and never had the error again.

Best regards,
Klaas den Dekker
Klaas den Dekker
 
Posts: 23
Joined: Sat Oct 22, 2005 8:22 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 46 guests