unspecified error in C# [closed]

I agree with the comments that you’ve not provided enough information to give us much chance to diagnose the issue.

However, try moving

OleDbConnection con = new OleDbConnection(...)

Out of the timer1_Tick routine so that you’re not constantly re-establishing the connection and see what happens.

We typically acquire connections and release them quickly to take advantage of connection pooling but I’m not sure you’ll get connection pooling with Jet. It may be that you’re effectively leaking connections.

It’s just a guess, but worth considering.

Leave a Comment