From: BKBK on
So, we may assume [i]dLA.IniMRL[/i] is causing the error. What happens when you make it an integer rather than a float?


From: BKBK on
[i]The error is happening several lines after I have passed values to the com
object, the code is using the data that is returned and is using the same
object instance and its returned variables that the working lines are using
above and below. [/i]

Could you let us see the object creation code? It seems to invoke a method on
a remote object, if we're to believe the error message [i]Argument is not a
remote object[/i].



From: okey on
Sure, here is the code that creates the object DLA... All of this code works
except for the line that call IniMRL... I've filtered out some of the
QuerySetCells there is about 50 of them in all....

<cfset objResults =
Application.elementDLL.GetResults("#WRK#","#tSA.Sample#","#tSA.Analysis#")>
<cfset objDLA = objResults.DataLine>
<cfloop collection="#objDLA#" item="dLA">
<cfset currRow = currRow + 1>
<cfset QueryAddRow(dataStore)>

QuerySetCell(dataStore,"cpd_parm_syn","#dLA.Analyte#",currRow);
QuerySetCell(dataStore,"ysd_parm_stored","#dLA.Analyte#",currRow);
QuerySetCell(dataStore,"ysd_analyst","#dLA.Analyst#",currRow);
QuerySetCell(dataStore,"yrd_analyst","#dLA.Analyst#",currRow);
/*
QuerySetCell(dataStore,"ysd_cpd_rdl","#dLA.IniMRL#",currRow);
QuerySetCell(dataStore,"ysd_RdlValue","#dLA.IniMRL#",currRow);
*/

QuerySetCell(dataStore,"ysd_cpd_rdl","#dLA.MRL#",currRow);
QuerySetCell(dataStore,"ysd_RdlValue","#dLA.MRL#",currRow);

QuerySetCell(dataStore,"ysd_mdlValue","#dLA.nMDL#",currRow);
......

</cfloop>

From: BKBK on
What happens when you leave out the Application scope, and use just elementDLL instead?


From: okey on
Same thing happens... I use the application scope so that the COM object doesn't have to be re-instantiated each time I need to use it...


First  |  Prev  |  Next  |  Last
Pages: 1 2 3
Prev: Cfmail possible firewall issue
Next: Xcopy sucks