FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour To Antonio: Re: Strange error.
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
To Antonio: Re: Strange error.
Posted: Mon Oct 22, 2012 03:03 AM

Guys:

I'm getting a strange error:
Error description: (DOS Error 32) DBFCDX/1004 Create error: Print.dbf

I'm using the DBFCDX driver. It used to work ok, but I'm getting it at random. I'm creating a dbf file from an array (the array has been setup correctly). The strange thing is that the file gets created. Anyone has a clue ?

Thank you

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Strange error.
Posted: Mon Oct 22, 2012 08:09 AM
HunterEC wrote:Error description: (DOS Error 32) DBFCDX/1004 Create error: Print.dbf


It looks like Print.dbf is already locked or opened in exclusive mode.

EMG
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
To Antonio: Re: Strange error.
Posted: Tue Oct 23, 2012 03:01 AM

Antonio:

Can you light us on this ?

Thank you.

Enrico:

The file does not exist previous to the DBCREATE(...) function.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: To Antonio: Re: Strange error.
Posted: Tue Oct 23, 2012 09:08 AM
HunterEC wrote:Enrico:

The file does not exist previous to the DBCREATE(...) function.


DOS Error 32 is "Sharing violation" so the file has to exist...

EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: To Antonio: Re: Strange error.
Posted: Tue Oct 23, 2012 09:34 AM

Gustavo,

Please post your code here so we can review it, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: To Antonio: Re: Strange error.
Posted: Tue Oct 23, 2012 02:38 PM
Antonio:

Here's the code:
Code (fw): Select all Collapse
// Original code does not have the RddSetDefault("DBFCDX")
// Added the following line to see if it fixes the error. Same results.
RddSetDefault("DBFCDX")                              
DBCREATE(cFileName, aNewFile, "DBFCDX")


Strange thing is that the file does not exists and the DBCREATE() function creates it, then after a few seconds pops up the error.
Thank you Antonio.
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: To Antonio: Re: Strange error.
Posted: Tue Oct 23, 2012 03:09 PM

Antonio, Enrico:

Solved (forgot to close a dialog that keeps calling file creation routine). Oops. Thank you very much.

Gustavo

Continue the discussion