Record in Use

Record in Use

Postby Colin Haig » Thu Jun 12, 2014 1:12 pm

Hi All

I have recently upgrade from FWH11.05 to FWH14.04 and also converted to Harbour but I don't think the problem comes from Harbour.

I use MDI in my apps and the tdatabase class.

I have one window that has a product database and using xbrowse bOnPostEdit I enter the delivered quantity of a product into a cell
(there can be multiple lines of items )- leaving that screen open I open another screen to invoice the product and when I save the invoice
I get a 'record in use' error - all the items in the first screen get processed except the last one I entered data into.

This does not happen with FWH11.05 and xHarbour

Cheers

Colin
Colin Haig
 
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am

Re: Record in Use

Postby James Bott » Thu Jun 12, 2014 3:56 pm

Are you locking the record while it is being edited?
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Record in Use

Postby Colin Haig » Thu Jun 12, 2014 9:28 pm

Hi James
I leave the record locking/unlocking to tDatabase and xBrowse.

Cheers

Colin
Colin Haig
 
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am

Re: Record in Use

Postby James Bott » Thu Jun 12, 2014 10:10 pm

Colin,

Then I would guess it is due to changes in FWH in the newer version. I doubt that it is Harbour, but you could test this by compiling with the newer version of xHarbour and the newer version of FWH. If you still get the error, then it is due to changes in FWH.

However, either way, I think you will need to fix the problem by changes to your code.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Record in Use

Postby nageswaragunupudi » Fri Jun 13, 2014 6:48 am

Mr Colin

We would like to investigate the problem. We shall be glad if you can post a self contained example which we can compile and test at our end. You may use any DBFs in the samples folder.

Note: By default, xbrowse creates bOnPostEdit codeblocks internally. They work efficiently. It is desirable not to override these default codeblocks with user codeblocks.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10317
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Record in Use

Postby Colin Haig » Sun Jun 15, 2014 1:22 am

Mr Rao

Can you give me your email address and I will send a sample - colin@techdata.net.au

Regards

Colin
Colin Haig
 
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am

Re: Record in Use

Postby nageswaragunupudi » Sun Jun 15, 2014 3:03 pm

Thanks for pointing out the issue.
This is fixed in ver 14.06 to be released soon.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10317
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Enrico Maria Giordano and 152 guests