R
Rich Wallace
Hi all,
I have an app that contains the following code....
----------------------------------------------------------------------------
------------------------------
Public Sub CreateNewDatabase(ByVal DbFile As String, ByVal sLots As String)
Dim catNewDB As New ADOX.Catalog
Dim oAccApp As New Access.Application
catNewDB.Create("Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source="
& DbFile)
catNewDB.ActiveConnection.Close()
catNewDB = Nothing
Try
oAccApp.OpenCurrentDatabase(DbFile)
oAccApp.ImportXML("http://localhost/export/Export/tblClosing.xsd",
AcImportXMLOption.acStructureOnly)
ExportData(DbFile, oAccApp)
Catch ex As Exception
EventLog.WriteEntry("Export", ex.Message)
Finally
oAccApp.CloseCurrentDatabase()
System.Runtime.InteropServices.Marshal.ReleaseComObject(oAccApp)
oAccApp = Nothing
End Try
End Sub
Although I use the ReleaseComObject method once I'm done working with the
MDB file, I still have MSACCESS.EXE running in the processes of my system,
and the MDB is locked and I have an LDB that will not release.
Any ideas on what may cause this?
VS.NET 2003
IIS 5.0
Access 2002
TIA
-Rich
I have an app that contains the following code....
----------------------------------------------------------------------------
------------------------------
Public Sub CreateNewDatabase(ByVal DbFile As String, ByVal sLots As String)
Dim catNewDB As New ADOX.Catalog
Dim oAccApp As New Access.Application
catNewDB.Create("Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source="
& DbFile)
catNewDB.ActiveConnection.Close()
catNewDB = Nothing
Try
oAccApp.OpenCurrentDatabase(DbFile)
oAccApp.ImportXML("http://localhost/export/Export/tblClosing.xsd",
AcImportXMLOption.acStructureOnly)
ExportData(DbFile, oAccApp)
Catch ex As Exception
EventLog.WriteEntry("Export", ex.Message)
Finally
oAccApp.CloseCurrentDatabase()
System.Runtime.InteropServices.Marshal.ReleaseComObject(oAccApp)
oAccApp = Nothing
End Try
End Sub
Although I use the ReleaseComObject method once I'm done working with the
MDB file, I still have MSACCESS.EXE running in the processes of my system,
and the MDB is locked and I have an LDB that will not release.
Any ideas on what may cause this?
VS.NET 2003
IIS 5.0
Access 2002
TIA
-Rich