Hello All,
I am facing problems because of Database sharing issues by 2 applications(say A and B).

Following code is being used to share the Database.
RDbs rdbs;
rdbs.Connect();
rdbs.Share();
TRAPD(err, rdbs.Attach());
TBuf<256> dbPath;
dbPath.Copy(KDbPath);
dbPath.Append(KDbName);
iDatabase.Open(rdbs, dbPath);
iDatabase.Begin();
/// do the processing

iDatabase.Commit()
iDatabase.Close();
rdbs.Close();

Similar code is present in both the applications for Database access. Currently one of the Application (B) is crashing if a loop of database access and operation is fired from other application(A).
I reckon this is something to do with the database sharing configuration.
If anybody has faced similar issues and is having any alternative method to solve this issue, kindly do let me know.
I normally get following errors, DBMS-2, DBMS Table-14.

Thanks in advance.