473,666 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sync Access

Hi,
i should access to the same XML file from 3 application. I use
System.Xml for load, save ecc ecc... so, i would access to file in
synchronized mode and handling the queue.
have you an idea?

thk
Jan 30 '06 #1
3 1339
You can use mutex to sync the access to Xml file.
Mutex, if named, is globally visible. So, before doing any I/O to the
ile - you will try to acquire that mutex.
--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Danilo Rizzo" <da********@gma il.com> wrote in message
news:eQ******** ******@TK2MSFTN GP09.phx.gbl...
Hi,
i should access to the same XML file from 3 application. I use System.Xml
for load, save ecc ecc... so, i would access to file in synchronized mode
and handling the queue.
have you an idea?

thk

Jan 30 '06 #2
Vadym Stetsyak ha scritto:
You can use mutex to sync the access to Xml file.
Mutex, if named, is globally visible. So, before doing any I/O to the
ile - you will try to acquire that mutex.


thanks, now i'm trying!

Danilo
Jan 30 '06 #3
mutex is only good for programs that are playing the same game.

Would it be better to just keep a non-shared read/write stream open on the
file - that would prevent any other app from writing or even moving it.

"Vadym Stetsyak" <va*****@ukr.ne t> wrote in message
news:eq******** ******@TK2MSFTN GP14.phx.gbl...
You can use mutex to sync the access to Xml file.
Mutex, if named, is globally visible. So, before doing any I/O to the
le - you will try to acquire that mutex.
--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Danilo Rizzo" <da********@gma il.com> wrote in message
news:eQ******** ******@TK2MSFTN GP09.phx.gbl...
Hi,
i should access to the same XML file from 3 application. I use System.Xml
for load, save ecc ecc... so, i would access to file in synchronized mode
and handling the queue.
have you an idea?

thk


Jan 31 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1460
by: Jason Gyetko | last post by:
I have a software application with an Access front end and an Access backend to house the data. Recently I converted the backend to MySQL. The Access frontend works fine connecting to the MySQL backend. The issue I have now is that I also have a syncronized database on a PDA. I was using ActiveSync and Pocket Access to create the database on the PDA and keep it syncronized with my PC (backend) database. I'm using eVB programs to...
1
1604
by: Jake Jessup | last post by:
I am just beginning development of a new app and I need a little advice on the best way to go about doing something. The app is a project management tool for a construction company. Users in the field will need to do remote updates both receiving and submitting data back to the main office. I can't just make it a live web app because the users will have to be able to work off line and sync data later (presumably with a VPN connection). ...
1
2426
by: kartik | last post by:
I open an fstream in read-only mode, read till the end, then try to sync() before seeking to position 0 & reading again. But the sync fails. I discovered that clear()ing the stream before the sync causes the sync to work. Seeking to position 0 before the sync doesn't seem to help. If you look at sync() as simply invalidating the read buffer (isn't that right?), isn't it illogical for it to fail in this situation? Besides sync()...
0
1037
by: Steve Bishop | last post by:
I was wondering if anyone could give me advice on Access 2002 and synchronization. We have several members in the field that need to sync with the office through a dial up. The sync will sometimes be bi-directional. Any suggestions on this? I have used the sync with Access 2000 years ago that seemed to work out well but the project had lesser requirements. Help appreciated. Steve
1
2058
by: pStan | last post by:
Nubie Question...I'm sure this is simple, but here goes anyway. I have a small VB.Net application that uses a local Access Database. I want that same local data replicated to an Internet web site so that I can use an ASP.NET page to work with the data. My DB and Application is not really big enough to mess with SQL server... QUESTION: What is the best way to sync my data to the web. I've tried the built in replication in Access and...
1
1741
by: Me | last post by:
Currently I have an application that uses MS Access to store data. I have 150 users that connect to the network via VPN through out the world. We use Access data replication, which has has bugs and problems. I would like to have a "primary" database on the network and have a local copy for use when not connected to the network. I would like the users to be able to sync thier changes made remotely with the "primary"database on the network. I...
3
2963
by: Ryan Liu | last post by:
Hi, What does ArrayList.Synchronized really do for an ArrayList? Is that equal to add lock(this) for all its public methods and properties? Not just for Add()/Insert()/Remvoe()/Count, but also for Item (this)? Normally,do I need sync at all? Isn't that true without sync the program can run faster?
0
1481
by: Denis | last post by:
Hello, does anyone know of an easy way to do a Bi-Directional Data Sync between SQL Server and an Access database. I want to make sure that both Access (on a desktop app) and SQL Server (on the internet) are always in sync, regardless of the data added/changed/deleted.
6
3529
by: kinedesigner | last post by:
We're using a perl script to fetch images from the inhouse server & pump them to a remote server with much higher bandwidth. I want to remove the Everyone account from the target folder on the remote server, so users may only access it with username & password. When I do this, the perl script stops working. I can only assume the perl script is operating under the Everyone account. How do I change the functionality so that the Everyone...
0
8443
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8866
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8781
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8550
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5663
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4366
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1772
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.