> I am having some really odd issues with a com object. 
> Requests to a single method call such as 
> "object.setField("city",arguments.city)" are leading to 
> variables being created in variables scope of a cfc. For 
> example if I dump the variables scope before and after the 
> method call above, I see that 2 variables are added to 
> variables scope, one named "city" and another that is named 
> after the actual value of the argument passed.

I think you'd need to show the relevant CFC code here.

> I also noticed years ago, when we were using a custom tag 
> instead of cfc to access this com object, that if I have a 
> url or form variable with the same name as one of the method 
> parameters it would have problems and set values as blank if 
> I'm remembering correctly.
> 
> Has anyone seen something like this before? I would expect 
> all of these method calls to just pass data by value and run 
> in a separate memory space.

Not all data is passed by value. Structures and queries, for example, are
passed by reference. It doesn't sound like you're passing one of those, but
I can't be sure, obviously.

> To explain my full situation, I am trying to make the com 
> object available in server scope. This will prevent some 
> threading issues to the data files being accessed by the com 
> object when accessed by multiple cf applications. Everything 
> works fine for a while but then ColdFusion as a whole starts 
> producing the error "unable to create new native thread 
> null". I am trying to track down more specific info about 
> that error but my first thought was to check for memory leaks 
> leading to the discovery I mentioned above.

Well, CF doesn't handle COM objects especially well, in my opinion. If
you're using a single COM object a lot, you might consider replacing it with
an analogous object in Java or CF. The "native thread" message doesn't sound
like a memory leak problem to me, but I wouldn't be at all surprised if you
do encounter memory leaks in CF when using COM.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304284
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to