Click here to Skip to main content
15,920,633 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: MDI problem Pin
jimpar20-Jan-04 3:46
jimpar20-Jan-04 3:46 
GeneralRe: MDI problem Pin
JensB20-Jan-04 20:27
JensB20-Jan-04 20:27 
GeneralRe: MDI problem Pin
gpa200020-Jan-04 21:38
gpa200020-Jan-04 21:38 
GeneralRe: MDI problem Pin
Anonymous20-Jan-04 22:18
Anonymous20-Jan-04 22:18 
GeneralLocking files in VB6 Pin
steff kamush19-Jan-04 23:48
steff kamush19-Jan-04 23:48 
GeneralRe: Locking files in VB6 Pin
Dave Kreskowiak20-Jan-04 8:08
mveDave Kreskowiak20-Jan-04 8:08 
GeneralRe: Locking files in VB6 Pin
steff kamush20-Jan-04 21:31
steff kamush20-Jan-04 21:31 
GeneralRe: Locking files in VB6 Pin
Dave Kreskowiak21-Jan-04 6:40
mveDave Kreskowiak21-Jan-04 6:40 
Well, the locking is the only "sure" way to control file access and you don't have to deal with renaming stuff back when you crash.

The problem you have is this:
When AppInstance1 checks for the availability of File1.tif, it's there. The next step, is for it to rename File1.tif to File1.locked. But, What if AppInstance2 found that File1.tif was available at (nearly) the same time, say, between AppInstance1 finding the file and renaming it? In this case, BOTH instances will find the file, but only one will succeed in renaming it. How is this case handled?

It's too much of a pain to write your own file locking scheme when Windows has locking built in. It also has the advantage of being "thread safe", where your custom scheme does not.


RageInTheMachine9532
Generalstill chart Pin
Adhizzz19-Jan-04 21:20
Adhizzz19-Jan-04 21:20 
GeneralRe: still chart Pin
steff kamush20-Jan-04 6:55
steff kamush20-Jan-04 6:55 
GeneralRe: still chart Pin
steff kamush20-Jan-04 6:56
steff kamush20-Jan-04 6:56 
QuestionWhere to Start??? Pin
SweetoSyed19-Jan-04 16:39
SweetoSyed19-Jan-04 16:39 
AnswerRe: Where to Start??? Pin
gpa200020-Jan-04 21:28
gpa200020-Jan-04 21:28 
GeneralRe: Where to Start??? Pin
HinJinShah22-Jan-04 6:23
HinJinShah22-Jan-04 6:23 
GeneralPls help me!! Pin
Member 82457919-Jan-04 15:19
Member 82457919-Jan-04 15:19 
GeneralRe: Pls help me!! Pin
gpa200020-Jan-04 21:32
gpa200020-Jan-04 21:32 
GeneralDeploy VBA script for Outlook Pin
staft19-Jan-04 14:54
staft19-Jan-04 14:54 
GeneralHELP ME PLEASE Pin
RobertAdam8218-Jan-04 8:24
RobertAdam8218-Jan-04 8:24 
GeneralRe: HELP ME PLEASE Pin
Dave Kreskowiak18-Jan-04 9:01
mveDave Kreskowiak18-Jan-04 9:01 
GeneralRe: HELP ME PLEASE Pin
RobertAdam8218-Jan-04 11:35
RobertAdam8218-Jan-04 11:35 
Generaldata connectivecty with coding Pin
Anonymous18-Jan-04 6:27
Anonymous18-Jan-04 6:27 
GeneralRe: data connectivecty with coding Pin
Guillermo Rivero18-Jan-04 7:03
Guillermo Rivero18-Jan-04 7:03 
GeneralRe: data connectivecty with coding Pin
gpa200020-Jan-04 21:46
gpa200020-Jan-04 21:46 
Questionhow to open Main,Mid,Child Form? Pin
samerali18-Jan-04 3:54
samerali18-Jan-04 3:54 
AnswerRe: how to open Main,Mid,Child Form? Pin
steff kamush20-Jan-04 6:38
steff kamush20-Jan-04 6:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.