luisurbinanet / gnudental

Automatically exported from code.google.com/p/gnudental
1 stars 0 forks source link

System.ArgumentOutOfRangeException at System.String.Substring (Int32 startIndex) #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This issue relates to the *Open Dental* code base.  Not to the
GNUdental(tm) code base (although the two are very similar at the moment
and it may also be an issue affecting GNUdental(tm) for this reason, but it
has not yet manifested itself in GNUdental(tm)).  The code contained in
this Google Code project is GNUdental(tm).  The Open Dental code base
exists here: https://70.90.133.65:23793/svn/opendental/

Please feel free to report all bugs in the *Open Dental* code base or the
GNUdental(tm) code base using this issue tracker.  Although Dr. Sparks
recently set up a Bugzilla issue tracker for himself
(https://70.90.133.65:23793/bugzilla/index.cgi) he currently does not allow
anyone to report bugs there except for those developers who he has
authorized to commit changes to his SVN repository.  See
http://www.open-dent.com/manual/developers.html under the section entitled
"Bugzilla" for more detail.

What steps will reproduce the problem?
1. those listed in the wiki GettingStarted page.

What is the expected output?

Open Dental runs.

What do you see instead?

Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of
range.
Parameter name: startIndex
  at System.String.Substring (Int32 startIndex) [0x00000] 
  at OpenDental.ContrChart..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) OpenDental.ContrChart:.ctor ()
  at OpenDental.FormOpenDental.InitializeComponent () [0x00000] 
  at OpenDental.FormOpenDental..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) OpenDental.FormOpenDental:.ctor ()
  at OpenDental.FormOpenDental.Main () [0x00000] 

Original issue reported on code.google.com by GNUden...@gmail.com on 29 Mar 2007 at 3:05

GoogleCodeExporter commented 8 years ago
After considerable research over the weekend, it's clear that this is not a bug 
in
Open Dental(R), but rather, seems to be a bug in Mono.

See http://bugzilla.ximian.com/show_bug.cgi?id=81289 for more detail.

Leaving open for the sake of tracking and marking status as "Started" to 
indicate
that we'll now begin working in earnest to identify the correct fix for Mono and
hopefully submit a patch to Mono to resolve this bug.  It's not clear at this 
point
why Debian(R) and Ubuntu(R) are not affected but Gentoo is.

Original comment by GNUden...@gmail.com on 2 Apr 2007 at 6:02

GoogleCodeExporter commented 8 years ago
Thanks to feedback from the Mono project folks, it's clear now that this 
exception
was getting thrown because the default system locale was unset (it is normally 
left
unset through a normal Gentoo install).  Could the other project members please
provide feedback on what and how your systems' locales were set on those 
systems that
have run OD/GD?  I've set mine as follows:

kevin@gnudental1 ~ $ locale
LANG=
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=en_US.utf8

http://bugzilla.ximian.com/show_bug.cgi?id=81289 provides more detail.

Still leaving this issue open at a lowered priority because this may have 
uncovered a
design problem in OD/GD in that (IMO) an explicit check of the system locale 
should
be made before the application moves on to execute code that depends upon 
having it
set to run properly.  This is a general design principle: before you make 
library
calls or execute any new code, you should explicitly verify that all
dependencies/prerequisites for doing so have been met.

Original comment by GNUden...@gmail.com on 2 Apr 2007 at 7:03