Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

GetSpaceIterator MoveNext hangs() when called under Excel

When accesing a space from a .Net4 client the following C# code works fine if it's compile into a simple exe and run from the command line.

If it's compiled into an XLL and run launched from an DNA Excel addin the code hangs on first call to (iter.MoveNext())

        Query = new SqlQuery< data >("field != 'dd' ");

        SpaceIteratorConfig itConfig = new SpaceIteratorConfig();
        itConfig.BufferSize = 200;

        using (ISpaceIterator<data> iter = MySpace.GetSpaceIterator< data >( Query , itConfig))
            List< data > tdList = new List< data >();

            while (iter.MoveNext())     // <---hangs where 

The read on the space can happened, but the results are never returned. We're struggling to work out how to debug the problem. I assume it's a JVM/Setup issue. But we don't have any tools which can help us work out what the problem is.

Could anyone point us in the right direction?

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3874]{quote}

asked 2012-06-15 11:47:18 -0500

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

Why won't you use readMultiple instead?
How many objects are you anticipating to read?

What's your IteratorScope? Can you try IteratorScope.ExistingEntries?


answered 2012-06-15 14:08:12 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2012-06-15 11:47:18 -0500

Seen: 32 times

Last updated: Jun 15 '12