To Antonio: Re: Strange error.

To Antonio: Re: Strange error.

Postby HunterEC » Mon Oct 22, 2012 3: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
Last edited by HunterEC on Tue Oct 23, 2012 3:03 am, edited 1 time in total.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Strange error.

Postby Enrico Maria Giordano » Mon Oct 22, 2012 8: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
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

To Antonio: Re: Strange error.

Postby HunterEC » Tue Oct 23, 2012 3:01 am

Antonio:

Can you light us on this ?

Thank you.


Enrico:

The file does not exist previous to the DBCREATE(...) function.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: To Antonio: Re: Strange error.

Postby Enrico Maria Giordano » Tue Oct 23, 2012 9: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
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: To Antonio: Re: Strange error.

Postby Antonio Linares » Tue Oct 23, 2012 9:34 am

Gustavo,

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

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

Re: To Antonio: Re: Strange error.

Postby HunterEC » Tue Oct 23, 2012 2:38 pm

Antonio:

Here's the code:
Code: Select all  Expand view

// 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.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: To Antonio: Re: Strange error.

Postby HunterEC » Tue Oct 23, 2012 3:09 pm

Antonio, Enrico:

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


Gustavo
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am


Return to FiveWin for Harbour/xHarbour

Who is online

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