Ticket #223 (new defect)
Opened 3 years ago
Crash in GetCompoundList
Reported by: | jasper | Owned by: | Michael Halloran |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | COLoggers | Version: | 2.4 |
Keywords: | Cc: |
Description
I see a crash in GetCompoundList - the package that I am using has a bunch of missing CAS numbers, which I suspect is not accounted for in this bit of code:
328 for (int i = 0; i < nName; i++) 329 { 330 bName = ((BSTR*)(V_ARRAY(names)->pvData))[i]; 331 bFormulae = ((BSTR*)(V_ARRAY(formulae)->pvData))[i]; 332 bCasno = ((BSTR*)(V_ARRAY(casnos)->pvData))[i]; 333 fBoilTemp = ((double*)(V_ARRAY(boilTemps)->pvData))[i]; 334 fMolWt = ((double*)(V_ARRAY(molwts)->pvData))[i]; 335 CTmp[i].Format("%-*ls %-*ls %-*ls %-8.6lg %-8.6lg",maxName,bName,maxCasNo,bCasno,maxFormulae,bFormulae,fBoilTemp,fMolWt); 336
Missing BSTR values are null pointers, I suspect this does not work well for .Format().
Note: See
TracTickets for help on using
tickets.