Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFOBJECT problems

Status
Not open for further replies.

chriswarr

Programmer
Jul 6, 2000
1
AU
I'm using CFOBJECT to create and use VB-COM components via MTS.&nbsp;&nbsp;The objects I'm creating I am storing in session variables.<br><br>I've had the following problems:<br>&nbsp;- Any properties or methods that take an argument ByRef don't work<br>&nbsp;- Any properties that take Variant arguments don't work<br>&nbsp;- If I create object (A) and pass it to the method of another object (B), deleting the object (A) succeeds,&nbsp;&nbsp;StructDelete(session,&quot;objA&quot;), but MTS shows the object still exists.&nbsp;&nbsp;This deletion works if I don't pass the object to B.&nbsp;&nbsp;Its like Cold Fusion thinks B is still interested in A so it won't let it die.<br><br>Has anyone else had any weird probems using COM objects with Cold Fusion?<br><br>Chris.<br>
 
Hi<br><br>i got a problem like this when i try to read the value from a table that a com object returns me, i can't. My code is this:<br><br>&lt;cfset ServerSessionId = &quot;Oren~93&quot;&gt;<br><br>&lt;cfobject type=&quot;COM&quot; name=&quot;oBettor&quot; class=&quot;eSTbrokerINET.CibroBettorSession&quot; action=&quot;CREATE&quot;&gt;<br><br>&lt;cfset xrs = oBettor.GetBettorDefaults(ServerSessionId)&gt;<br>&lt;--- this is a recordset ---&gt;<br>&lt;cfoutput&gt;<br>record #xrs.recordcount#<br>#xrs.accountbalance#<br>&lt;/cfoutput&gt; <br><br>&nbsp;&lt;cfloop collection=&quot;#xrs#&quot; item=&quot;record&quot;&gt;<br> &lt;CFOUTPUT&gt; <br> record.AccountBalance &lt;BR&gt; <br> &lt;/CFOUTPUT&gt;&nbsp;&nbsp;<br>&lt;/cfloop&gt;<br>&nbsp;<br>Edward patterson<br>Programmer<br><A HREF="mailto:edwapa@latinmail.com">edwapa@latinmail.com</A><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top