473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

HANDLES NOT BEING RELEASED

I'VE POSTED THIS BEFORE BUT I STILL HAVE THE PROBLEM-

I wrote a database client with vb.net. It runs fine for about a week and
then I loose all connectivity. Windows NT displays a system error "no more
internal File identifiers".
I checked my program carefully to make sure that every odbc and streamreader
is closed after I open them; However,Using process explorer, I can see that
about 15 handles get added everytime I add a record.

I force a system.gc.collect and I still see no difference; handles are
slowly being added everytime I update my database.

Does anyone have any advice?

--
Mark Escandon
Production/Systems Manager
Fybon Industries
Jul 21 '05 #1
6 1467
What are those handles you are talking about about ? It looks more like a
file problem rather than a DB problem...

Do you have some kind of file orpation in your DB layer ?

Patrice

--

"Mark Escandon" <Ma**********@discussions.microsoft.com> a écrit dans le
message de news:DB**********************************@microsof t.com...
I'VE POSTED THIS BEFORE BUT I STILL HAVE THE PROBLEM-

I wrote a database client with vb.net. It runs fine for about a week and
then I loose all connectivity. Windows NT displays a system error "no more internal File identifiers".
I checked my program carefully to make sure that every odbc and streamreader is closed after I open them; However,Using process explorer, I can see that about 15 handles get added everytime I add a record.

I force a system.gc.collect and I still see no difference; handles are
slowly being added everytime I update my database.

Does anyone have any advice?

--
Mark Escandon
Production/Systems Manager
Fybon Industries

Jul 21 '05 #2

"Patrice" <no****@nowhere.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
What are those handles you are talking about about ? It looks more like a
file problem rather than a DB problem...

Do you have some kind of file orpation in your DB layer ?

Patrice


Some people call Access a database too;

Willy.
Jul 21 '05 #3
Mark specifically refers to "handles" not "connections". Based on this and
the error message that looks like ERROR_NO_MORE_SEARCH_HANDLES
(http://msdn.microsoft.com/library/de...-us/debug/base
/system_error_codes__0-499_.asp) I would thought rather about something like
having temporary files created but not deleted etc...

I would suggest to Mark to write a specific very simple test app that update
its DB (whatever it is) repeatedly to see if it has the same behavior...
Some tools at www.sysinternals.com (such as filemon) may also help.

Patrice
--

"Willy Denoyette [MVP]" <wi*************@telenet.be> a écrit dans le message
de news:eE**************@TK2MSFTNGP12.phx.gbl...

"Patrice" <no****@nowhere.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
What are those handles you are talking about about ? It looks more like a file problem rather than a DB problem...

Do you have some kind of file orpation in your DB layer ?

Patrice


Some people call Access a database too;

Willy.

Jul 21 '05 #4

"Patrice" <no****@nowhere.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
Mark specifically refers to "handles" not "connections". Based on this and
the error message that looks like ERROR_NO_MORE_SEARCH_HANDLES
(http://msdn.microsoft.com/library/de...-us/debug/base
/system_error_codes__0-499_.asp) I would thought rather about something
like
having temporary files created but not deleted etc...

I would suggest to Mark to write a specific very simple test app that
update
its DB (whatever it is) repeatedly to see if it has the same behavior...
Some tools at www.sysinternals.com (such as filemon) may also help.

Patrice


And connections have handles, IMO (could be wrong though) Mark has a file
based DB (like MSACCESS) located on a file share. The error 113 is typical
in this scenario and comes from the fact that the redirector (network
client) and the server (network file server) have their own file handle
administration, the number of files that can be opened over a network is
smaller than the number that can be opened locally, failing to close the
handles (close the DB connection/table etc) can lead to error 113.

Willy.
Jul 21 '05 #5
Could be though he said he closed all its DB connections... (don't know how
he checked this).

Hopefully he'll be back here if needed...

Patrice

--

"Willy Denoyette [MVP]" <wi*************@telenet.be> a écrit dans le message
de news:On**************@tk2msftngp13.phx.gbl...

"Patrice" <no****@nowhere.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
Mark specifically refers to "handles" not "connections". Based on this and the error message that looks like ERROR_NO_MORE_SEARCH_HANDLES
(http://msdn.microsoft.com/library/de...-us/debug/base /system_error_codes__0-499_.asp) I would thought rather about something
like
having temporary files created but not deleted etc...

I would suggest to Mark to write a specific very simple test app that
update
its DB (whatever it is) repeatedly to see if it has the same behavior...
Some tools at www.sysinternals.com (such as filemon) may also help.

Patrice


And connections have handles, IMO (could be wrong though) Mark has a file
based DB (like MSACCESS) located on a file share. The error 113 is typical
in this scenario and comes from the fact that the redirector (network
client) and the server (network file server) have their own file handle
administration, the number of files that can be opened over a network is
smaller than the number that can be opened locally, failing to close the
handles (close the DB connection/table etc) can lead to error 113.

Willy.

Jul 21 '05 #6

"Patrice" <no****@nowhere.com> wrote in message
news:ea**************@TK2MSFTNGP10.phx.gbl...
Could be though he said he closed all its DB connections... (don't know
how
he checked this).

Hopefully he'll be back here if needed...

Patrice

--


He said it runs fine for about a week so I guess we will have to wait.

Willy.
Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Michael Sparks | last post by:
Kamaelia 0.1.2 has been released! What is it? =========== Kamaelia is a collection of Axon components designed for network protocol experimentation in a single threaded, select based...
1
by: J. Dudgeon | last post by:
Hello, I've written a server that acts as a proxy between the PC and the mainframe worlds. This server service is writting in C# w/.NET 1.1. The service is TCP/IP based and makes heavy use of...
3
by: gmtonyhoyt | last post by:
Okay, this one's a tough one for me to explain so this might take a few e-mails to get the idea across. Here's what I got though. I have this application running on a Sun/Solaris machine,...
18
by: Conrad F | last post by:
Hello all, I am waiting for receipt of files in a directory. I use the FileSystemWatcher to detect when files arrive in said folder. I need to read the data from these files ASAP but the files...
2
by: VinDotNet | last post by:
Here's the Scenario I am facing: I've got a winform managed c++ client which connects to my managed COM+ server application (by making createinstance, then typecasting the object to an interface,...
5
by: LBT | last post by:
I have a window service written in VB.NET to scan directory and process file. During directory scanning (scheduled by timer using System.IO.Directory.GetFiles method), I can observe that the column...
7
by: Mark Escandon | last post by:
I'VE POSTED THIS BEFORE BUT I STILL HAVE THE PROBLEM- I wrote a database client with vb.net. It runs fine for about a week and then I loose all connectivity. Windows NT displays a system error...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.