アプリ版:「スタンプのみでお礼する」機能のリリースについて

VB2008で文書検索のソフトを作成したのですが、
サーバ上に置いている実行ファイルを複数PCからアクセスすると、
2台目以降のPCが起動した時にエラーがでます。
職場のPCを入れ替える前は複数のPCからアクセスしても問題ありませんでした。
エラーの理由が分かる方がいらっしゃれば教えてください。
よろしくお願いします。
職場のPCはWINXPです。

エラーの内容
************** Exception Text **************
System.IO.IOException: The process cannot access the file '\\文書検索\info.dat' because it is being used by another process.
at Microsoft.VisualBasic.FileSystem.FileOpen(Int32 FileNumber, String FileName, OpenMode Mode, OpenAccess Access, OpenShare Share, Int32 RecordLength)
at 文書管理システム.FormMain.FormMain_Load(Object eventSender, EventArgs eventArgs)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

A 回答 (1件)

>Microsoft.VisualBasic.FileSystem.FileOpen(Int32 FileNumber, String FileName, OpenMode Mode, OpenAccess Access, OpenShare Share, Int32 RecordLength)


ってなってますから、OpenShare Shareに共有可能かどうかの指定が可能なのでは。
ここらあたりを参考に
http://msdn.microsoft.com/ja-jp/library/microsof …
    • good
    • 0
この回答へのお礼

お陰様で無事解決しました。ありがとうございました。

お礼日時:2009/11/06 18:28

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!