Wine multi user application hangs (stuck) while simultaneous

Questions about Wine on Linux
Locked
Douglas Fredy
Newbie
Newbie
Posts: 4
Joined: Tue Sep 09, 2014 12:22 am

Wine multi user application hangs (stuck) while simultaneous

Post by Douglas Fredy »

I have installed Tally ERP9 (Accounting Software) on WINE Version 1.7.10 under Ubuntu 12.04
Software works well under wine with the only exception of the problem as described below

I have created a multiuser Ubuntu system with 10 users on it
Every user have their own wineprefixes for installing Tally ERP9
10 other users on network use this multiuser Ubuntu system using RDP Client

This Multiuser accounting application have a common database that is accessed and modified by all the users while they are entering different Vouchers for Payment, receipt, etc.

When this application is run under windows all the users can simultaneously work and save their data to the common database file and while we run it in the same way on WINE it either “gives an error showing damaged Database file” or “the application hangs (stuck)”.

I am not sure if this happens because of the file locking mechanism used by the application. I doubt if application gets proper file locking mechanism in Windows and not in my WINE.

I have till now tried to solve the problem using various Ideas and infact am confused between many different possibilities or may be impossibilities.

I would like to know if this can be solved by
  • Applying wine patch
    Making any changes on Linux Filesystem
    Applying any windows DLL or Registry
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Re: Wine multi user application hangs (stuck) while simultan

Post by oiaohm »

Douglas Fredy welcome to fault central.
http://wiki.winehq.org/FileLocking

File locking is a section of wine that still needs lots and lots of work. Try placing the database on a samba share and mounting that. Sometimes this helps. This might fix the locking issue. When you read the wiki about FileLocking there are some major issues in wine. Also do try a newer version of wine.

Douglas Fredy this may be another locking related bug report required.

By the way the same kinds of disasters that wine suffers from you can have happen if you run accountancy and other programs that require locking with Windows XP Home. So wine behaviour does match some versions of Windows. Yes if the program says strictly Windows XP Pro or better you can fairly much expect this kind of locking trouble.
Douglas Fredy
Newbie
Newbie
Posts: 4
Joined: Tue Sep 09, 2014 12:22 am

Re: Wine multi user application hangs (stuck) while simultan

Post by Douglas Fredy »

Thanks oiaohm
You actually shown me the way to achieve my target.
The FileLocking link took me to a link from where I came to know that if I have a common wineserver then there are chances that I come over the problem. As far as samba is concerned I was already mounting my Database using samba. And till I posted my problem here on forum I tried different ways by keeping just the data on samba or keeping both application and database on samba. Surely there was a noteable difference in behaviour of my application, but it wasn't up to my requirements.
But now, for common wineserver what I did was I started multiple application instances in same wineprefix which in starting gave me some problems but they were all minor and got solved.
So thanks to you again as I am currently using my Multiuser Accounting Software in the way I wanted and I consider it to be because of you.
Locked