Hi,
I am getting the below exception when I repeatedly execute a querry connecting to a MS Access database.
This exception occurs at random instances.I am trying to execute a simple select query.

Regards
-Sandeep


The code looks like:
mStatement = mConnection.createStatement
( ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
mResultSet = mStatement.executeQuery(mQuery);

The Exception Trace looks like:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x7800D011
Function=set_sbh_threshold+0x674
Library=C:\WINNT\system32\MSVCRT.dll

Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.getDataInteger(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLGetDataInteger(JdbcOdbc. java:3205)
at sun.jdbc.odbc.JdbcOdbcResultSet.getDataInteger(Jdb cOdbcResultSet.java
:5441)
at sun.jdbc.odbc.JdbcOdbcResultSet.getInt(JdbcOdbcRes ultSet.java:571)
at sun.jdbc.odbc.JdbcOdbcResultSet.calculateRowCount( JdbcOdbcResultSet.j
ava:6174)
at sun.jdbc.odbc.JdbcOdbcResultSet.initialize(JdbcOdb cResultSet.java:154
)
at sun.jdbc.odbc.JdbcOdbcStatement.getResultSet(JdbcO dbcStatement.java:4
23)
- locked <03108D48> (a sun.jdbc.odbc.JdbcOdbcStatement)
at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcO dbcStatement.java:2
53)
at QDBUtils.QDBAccessor.executeQuery(QDBAccessor.java :204)
at QQueryEditor.QMSAccessDataSourceAccessor.testQuery (QMSAccessDataSourc
eAccessor.java:63)
at QQueryEditor.QEditorFrame.callTestQueryWithStatus( QEditorFrame.java:9
18)
at QQueryEditor.QEditorFrame.handleExecuteQueryButton (QEditorFrame.java:
957)
at QQueryEditor.QEditorFrame.handleAction(QEditorFram e.java:1102)
at QEvent.QActionAdapter.actionPerformed(QActionAdapt er.java:20)
at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:17
67)
at javax.swing.AbstractButton$ForwardActionEvents.act ionPerformed(Abstra
ctButton.java:1820)
at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel
.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:257
)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonL
istener.java:258)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEven tMulticaster.java:2
27)
at java.awt.Component.processMouseEvent(Component.jav a:5021)
at java.awt.Component.processEvent(Component.java:481 8)
at java.awt.Container.processEvent(Container.java:152 5)
at java.awt.Component.dispatchEventImpl(Component.jav a:3526)
at java.awt.Container.dispatchEventImpl(Container.jav a:1582)
at java.awt.Component.dispatchEvent(Component.java:33 67)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:3359
)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:3074)

at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:3004)
at java.awt.Container.dispatchEventImpl(Container.jav a:1568)
at java.awt.Window.dispatchEventImpl(Window.java:1581 )
at java.awt.Component.dispatchEvent(Component.java:33 67)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 445)
at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchTh
read.java:191)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThre
ad.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:138)

at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:130)

at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:98)