-
July 14th, 2010, 01:09 AM
#31
Re: couldn't lock file
The user needs to obtain some report these days. I do not have time to implement logging. I put some messages in the app and the app worked ok. But using the app without messages doesn't work any more. To do all you said I need time which I do not have.
-
July 14th, 2010, 01:30 AM
#32
Re: couldn't lock file
may be some simultaneous locking problem from diff users is causing the problem. try to use semaphores or mutex for synchronisation..
-
July 14th, 2010, 01:45 AM
#33
Re: couldn't lock file
I assume the "lock" is about the mdb. On that computer only one user is working. I don't know to use semaphores or mutex.
-
July 14th, 2010, 01:52 AM
#34
Re: couldn't lock file
Originally Posted by florivucu
The user needs to obtain some report these days. I do not have time to implement logging.
You spent much more time for the long discussion here than you'd needed to implement logging.
// EDIT: besides, time only matters if your App works, which is, unfortunately, not the case.
Last edited by VictorN; July 14th, 2010 at 02:22 AM.
Victor Nijegorodov
-
July 14th, 2010, 07:20 AM
#35
Re: couldn't lock file
Originally Posted by florivucu
The user needs to obtain some report these days. I do not have time to implement logging. I put some messages in the app and the app worked ok. But using the app without messages doesn't work any more. To do all you said I need time which I do not have.
At least implement the try/catch blocks, catch and report the error. You may learn something.
FWIW, Requery after Open is redundant. You should remove it.
-
July 14th, 2010, 07:25 AM
#36
Re: couldn't lock file
Originally Posted by GCDEF
FWIW, Requery after Open is redundant. You should remove it.
Correct! good catch!
Or, at least insert else between them!
Code:
RstStatii.m_strFilter.Format("CODSTA = %ld",codes);
if (!RstStatii.IsOpen())
RstStatii.Open(dbOpenSnapshot);
else
RstStatii.Requery();
Victor Nijegorodov
-
July 19th, 2010, 12:26 AM
#37
Re: couldn't lock file
Problem solved. Thanks to all. The problem has been solved by reinstalling the MS Office. I will keep in mind to apply all you said in the new release. Many thanks to all.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|