troubleshooting Question

Debugging a DLL

Avatar of leonstryker
leonstrykerFlag for United States of America asked on
5 Comments1 Solution290 ViewsLast Modified:
I have a DLL which is referencing another DLL. Inside my DLL there is a function:

        public string[,] querycols1010(int queryID)
            string[][] tempval;

            tempval =  comLink.querycols1010(queryID);

            string[,] colInfo = new string[6, tempval.GetUpperBound(0)];

            for (int k = 0; k <= 5; k++)
                for (int i = 0; i <= tempval.GetUpperBound(0); i++)
                    colInfo[k,i] = tempval[k][i];
            return colInfo;

When I try to use this function from VBA I get an error "Index was outside the bounds of the array". I would like to debug my C# dll code to see what is going on as I have a feeling that there is something wrong with my array conversion, but not sure how to setup the debugging. Help would be appreciated.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros