Import file dialog allows a second import -which stack dumps

User 80c35730b2

09-12-2011 10:44:17

JChem for Excel 5.6.0.482


1. The user imports any RD file


2. After pressing the "Import" button and observing that the spread sheet is loaded with structures and data, the file import dialog box remains displayed. The following buttons are active "Previous", "Import", "Close.


3. If the "Import" button is pressed for a second time a stack dump results


Exception: System.ArgumentNullException
Message: Buffer cannot be null.
Parameter name: buffer
StackTrace:    at System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable)
   at System.IO.MemoryStream..ctor(Byte[] buffer)
   at ChemAxon.JChemExcel.IKVM.IO.MolImporterStructureRecordEnumerator.CreateMolImporter()
   at ChemAxon.JChemExcel.IKVM.IO.MolImporterStructureRecordEnumerator.<GetMoleculeStructureRecords>d__c.†††
†††‡Š(Object )
   at ChemAxon.JChemExcel.IKVM.IO.MolImporterStructureRecordEnumerator.<GetMoleculeStructureRecords>d__c.MoveNext()
   at ChemAxon.JChemExcel.IKVM.IO.MolImporterStructureRecordEnumerator.<GetRecords>d__0.†††
†††‡œ‘(Object )
   at ChemAxon.JChemExcel.IKVM.IO.MolImporterStructureRecordEnumerator.<GetRecords>d__0.MoveNext()
   at ChemAxon.NET.Base.ExtensionMethods.IEnumerableExtensions.<GroupEveryShrinkLast>d__2c`1.MoveNext()
   at ChemAxon.JChemExcel.Base.ExcelMapper.AbstractExcelEnumerableBatchMapper.†††
††††–‡(Object )
   at ChemAxon.JChemExcel.Base.ExcelMapper.AbstractExcelEnumerableBatchMapper.MapRecordBatches()
   at ChemAxon.JChemExcel.Base.ExcelMapper.DrawingExcelMapper.†††
††††˜ˆ(Object )
   at ChemAxon.JChemExcel.Base.ExcelMapper.DrawingExcelMapper.Execute()
   at ChemAxon.JChemExcel.IKVM.IO.MolImporterResultMapper.†††
††††›–(Object )
   at ChemAxon.JChemExcel.IKVM.IO.MolImporterResultMapper.Execute()
   at ChemAxon.JChemExcel.Base.Controls.BackgroundWorkerPresenter.†††
††††‹(Object )
   at ChemAxon.JChemExcel.Base.Controls.BackgroundWorkerPresenter.backgroundWorker_DoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)