Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2006

Tip: Looking for answers? Try searching our database.

Index was outside the bonds of the array on framework 2.0 + + Win2003 + Xeon based system

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gilad.kapel@gmail.com - 31 Aug 2006 08:23 GMT
Hi

I have a system composed of sevral DLLs all round up into one
WebService.
I'm working with VS2005 Framework 2.0 under WinXP.

The system is at the end of its development stage and was both checked
on a WinXP & Win2003 32bit systems on the same computer (Standard P4 -
3GHz with 1Mb of ram)

Recently, I deployed the system on a Server (Xeon Dual Processor, 2Mb
Ram) running Win2003. Since then, I get an "Index was outside the
bounds of the array" Exception on random occasions and only on that
system.

I wasn't able to simulate this exception on my desktop system with the
exact same data.

This happens moslty in a DLL incharge of doing mathematical
calculations mainly on float & double arrays.

I also get all sort of other strange exceptions from time to time
mostly related to mathematical operations. One of it is "Load factor
needs to be between 0.1 and 1.0" which has something to do with
creating hashtables and using a float to store the load factor.

Is there something I'm missing here ? All I did is deploy the system on
a similar Intel based system running the same OS. Am I missing a system
update ? Will moving to a 64bit system solve this problem ? Can the
problem be with the hardware ? Is this problem documented anywere ?

thank you for your comments.

Gilad.
Andy Bates - 31 Aug 2006 08:43 GMT
Not sure if it helps but the Server with "dual" Xeon processors started
alarm bells ringing!

I'm assuming that your development box is a single processor. If it is then
it's probably a threading issue that is only coming to light on the dual
processor box.

The spurious nature of the problems that you're seeing also seems to point
to this as being the issue.

Unless you have specifically designed the system for the multi-threaded
environment then you're probably seeing issues related to multiple threads
accessing shared common objects (either in managed code or the DLLs).

To test this you could serialise access to the web methods and test, give
each web method it's own copy of the resources it needs. Run this on the
server and see whether the problem is still present.

Also if you're using multiple DLLs they may not be re-entrant and access may
need to be serialised.

HTH

- Andy

> Hi
>
[quoted text clipped - 30 lines]
>
> Gilad.
Ignacio Machin ( .NET/ C# MVP ) - 31 Aug 2006 16:22 GMT
Hi,

Are you using threads?
Are you sync. the access to the data?

Signature

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

> Hi
>
[quoted text clipped - 30 lines]
>
> Gilad.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.