> ... The object kinda works. When first called, I get the
> " Object variable or With block variable not set " error.  
> If you hit reload, same problem. But if you wait a few 
> minutes, and then hit reload, it works. I really don't 
> know where to turn, and since it works in VB/ASP, I can't 
> call Microsoft.
> ...
> The ASP code that calls the function is simple too, and never fails:
> <% 
>       set oObj = server.createobject("UDB_Contact.Business")
>       strResult = oObj.add(strSource)
> %>
> 
> The CF code should work the same way, or so I thought:
>       <CFOBJECT TYPE="COM" NAME="objContact" 
> CLASS="UDB_Contact.Business">
> ACTION="CREATE">
>       <CFSET strWDDX_Retval = objContact.Add(strWDDX_Input)>

The code looks the same to me, too. Here are some things you might try.

Which line is causing the error, the CFOBJECT or the method call in line 2?
If it's the second, then it's just taking an inordinately long time to
instantiate the object for some reason. You could potentially take that to
MS as a problem, even though it works from ASP - if you have MS support, my
experience with them has been pretty good, even when using their products
with other products like CF (after all, that's how assimilation works!).

You might try writing a WSC wrapper object which calls your object. The code
for that would be script (VB or JScript). You can generate one of these very
easily using the Windows Script Component Wizard, available as a download
from the MS Scripting site.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to