I already saw this question passing by in the news group, but I could not
make up answer from it.
I have an object say TestObject that has a public method (only to explain
the problem):
class TestObject
{
private ArrayList mAL;
public TestObject()
{
}
public ArrayList GetArrayList()
{
return mAL;
}
}
I expose this method via a COM Interface to ASP which uses server-side the
javascript language.
When I use
var oTestObject = Server.CreateObject("TestObject.TestObject")
var al = new Enumerator(oTestObject.GetArrayList())
I get only one element of the ArrayList back, and their are two objects
contained in the ArrayList. When I call the same object from a .NET program
(without using COM) I do get 2 objects.
Does anyone know how to solve this?
Thanks in advance,
Martijn Remmen
Martijn Remmen - 29 Apr 2005 13:47 GMT
It seems that only the first object is removed. Because when I add a row in
the database (and I've got a total of three objects) I get two objects when
using COM and three objects in the .Net application.
Has someone else seen this behavior before?
Martijn Remmen