![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
*I am using version 12.0.6535.5005 of the msaccess.exe executable on a Windows 7 64-bit computer. *Every time I open and exit Access, the GUI will be made invisible, but the process is still running in the background. *This occurs even if I do not open any database files-- simply opening msaccess.exe and closing it causes the process to hang. Has anyone else experienced this issue? *Does anyone know if there is an update to this issue? Thanks. Vincent |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
I think the problem lies here: Close FindClose(iSearchHandle) The Close statement is used to close open files. All you actually need is: FindClose iSearchHandle |
#5
| |||
| |||
|
|
On Fri, 13 Aug 2010 22:40:03 +0100, "Stuart McCall" smccall (AT) myunrealbox (DOT) com> wrote: I think the problem lies here: Close FindClose(iSearchHandle) The Close statement is used to close open files. All you actually need is: FindClose iSearchHandle Good catch. My brain skipped right over that line of code. Interesting that the code didn't error out. |
#6
| |||
| |||
|
|
Interesting that the code didn't error out. Thanks Tony. If I recall correctly, FindClose returns 1 for success & 0 for fail. If you issue a Close 1 (with no file open) you don't get an error. Nor will it error on Close 0, which is meaningless. So the crash was somehow caused by calling FindClose in this manner. <shrug |
#7
| |||||
| |||||
|
|
On Tue, 17 Aug 2010 04:22:23 +0100, "Stuart McCall" smccall (AT) myunrealbox (DOT) com> wrote: Interesting that the code didn't error out. Thanks Tony. If I recall correctly, FindClose returns 1 for success & 0 for fail. If you issue a Close 1 (with no file open) you don't get an error. Nor will it error on Close 0, which is meaningless. So the crash was somehow caused by calling FindClose in this manner. <shrug Actually his code didn't crash but it hung as a background process. |
|
Also when I look at the close statement it doesn't return anything. |
|
Furthermore I just tried it in a module with a non opened file number and it didn't cause an error of any sort. |
|
So it's the MS VB/VBA folks fault. <smile |
|
Tony -- Tony Toews, Microsoft Access MVP Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/ For a convenient utility to keep your users FEs and other files updated see http://www.autofeupdater.com/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |