Board index » delphi » IO Error 32 when dealing with FileListBox, DirListBox, DriveCombo

IO Error 32 when dealing with FileListBox, DirListBox, DriveCombo

In my app i have TabSheet where i have 3 group boxes, every group box
contains a set of FileListBox, DirListBox and DriveCombo.

When i am starting two copies on my app on the same computer, i sometimes
having IO Error 32 which means that file is locked by another process..

What does it means and how i can disable that?

TIA,
Eugene.

--
ICQ: 35477912
MSN: eg...@mts-nn.ru
Yahoo: eugene_goldberg2000
AOL: egold2002

 

Re:IO Error 32 when dealing with FileListBox, DirListBox, DriveCombo


"Eugene V. Goldberg" <EugeneGoldb...@mail.ru> wrote:

Quote
>In my app i have TabSheet where i have 3 group boxes, every group box
>contains a set of FileListBox, DirListBox and DriveCombo.

>When i am starting two copies on my app on the same computer, i sometimes
>having IO Error 32 which means that file is locked by another process..

>What does it means and how i can disable that?

It means that your app is probably trying to access a file that is
already in use. Usually you will get this when trying to open the
file. But you should be able to compile your app, run it from outside
the ide, and then run another copy from inside the IDE with break on
exception set. Then you'll know exactly what code is causing the
problem.

Good luck.

Kurt

Re:IO Error 32 when dealing with FileListBox, DirListBox, DriveCombo


no i am not opening any file at all. I think this is caused by FileListBox
components.

"Kurt Barthelmess (TeamB)" <kbarthelm...@compuserve.com> wrote in message
news:3e71e7b9.47259175@newsgroups.borland.com...

Quote
> "Eugene V. Goldberg" <EugeneGoldb...@mail.ru> wrote:

> >In my app i have TabSheet where i have 3 group boxes, every group box
> >contains a set of FileListBox, DirListBox and DriveCombo.

> >When i am starting two copies on my app on the same computer, i sometimes
> >having IO Error 32 which means that file is locked by another process..

> >What does it means and how i can disable that?

> It means that your app is probably trying to access a file that is
> already in use. Usually you will get this when trying to open the
> file. But you should be able to compile your app, run it from outside
> the ide, and then run another copy from inside the IDE with break on
> exception set. Then you'll know exactly what code is causing the
> problem.

> Good luck.

> Kurt

Re:IO Error 32 when dealing with FileListBox, DirListBox, DriveCombo


Quote
In article <3e718...@newsgroups.borland.com>, Eugene V. Goldberg wrote:
> In my app i have TabSheet where i have 3 group boxes, every group box
> contains a set of FileListBox, DirListBox and DriveCombo.

> When i am starting two copies on my app on the same computer, i sometimes
> having IO Error 32 which means that file is locked by another process..

> What does it means and how i can disable that?

It means what it says, nothing more, nothing less. You would get that if
your application opened a file in exclusive mode and the second instance
tries to open the same one. Just displaying the available files in the
filelistbox will not open any of them, so not cause the problem. It has to
be something you are doing in your code.

--
Peter Below (TeamB)  
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be

Re:IO Error 32 when dealing with FileListBox, DirListBox, DriveCombo


Quote
> It means what it says, nothing more, nothing less. You would get that if
> your application opened a file in exclusive mode and the second instance
> tries to open the same one. Just displaying the available files in the
> filelistbox will not open any of them, so not cause the problem. It has to
> be something you are doing in your code.

I am not opening any files in program at all!
Just displaying a 3 sets of drive + dir + files in each instance.

Eugene.

Re:IO Error 32 when dealing with FileListBox, DirListBox, DriveCombo


Quote
In article <3e71fcc...@newsgroups.borland.com>, Eugene V. Goldberg wrote:

> I am not opening any files in program at all!

That is what *you* are thinking <g>. Honestly, i cannot think of a reason why
just using the set of components you use would cause that kind of error.

--
Peter Below (TeamB)  
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be

Other Threads