Unhandled exception error 
Author Message
 Unhandled exception error

I have developed a computer based version of a {*filter*} table game for a
company and am having difficulty testing the program on Windows 98 and
ME systems.

Everything installs OK including dotnetfx.exe but when I run my
program I get the error:

Unhandled Exception
Argument 'Length' must be greater than or equal to zero

This happens only on computers running 98 or ME.  My program runs fine
on 2000 and XP systems.

Any assistance is greatly appreciated.

Regards
Rob



Fri, 30 Sep 2005 10:17:23 GMT  
 Unhandled exception error
Hello Robert,


Quote:
> Everything installs OK including dotnetfx.exe but when I run my
> program I get the error:

> Unhandled Exception
> Argument 'Length' must be greater than or equal to zero

> This happens only on computers running 98 or ME.  My
> program runs fine on 2000 and XP systems.

Maybe there is a bug in your code. Add exception handlers to every
procedure and catch the exceptions.

Regards,
Herfried K. Wagner



Fri, 30 Sep 2005 10:46:56 GMT  
 Unhandled exception error
Robert,

If you use a debug build you will be able to get more information regarding
the place where the exception occur (i.e. the code file and line number).

Now, depending on whether the error is in your code (highest probability) or
MS's .NET framework, the solutions are different (either fix your code, or
try an alternative way of obtaining what you want).

Mike.
_______________________________________________________
CodeSMART 2001 for Visual Basic - from www.axtools.com
 - Project Explorer with VB code browsing
 - AutoText - type a few letters for entire code blocks
 - Code Analyzer, Spelling Checker, Code Reformatter
Visit us for freeware and commercial development tools!


Quote:
> I have developed a computer based version of a {*filter*} table game for a
> company and am having difficulty testing the program on Windows 98 and
> ME systems.

> Everything installs OK including dotnetfx.exe but when I run my
> program I get the error:

> Unhandled Exception
> Argument 'Length' must be greater than or equal to zero

> This happens only on computers running 98 or ME.  My program runs fine
> on 2000 and XP systems.

> Any assistance is greatly appreciated.

> Regards
> Rob




Fri, 30 Sep 2005 16:02:30 GMT  
 Unhandled exception error
Thank you for the excellent replies to my original posting.  I added
some debug code to my program and found that the function that returns
the path to the application folder when run on Windows 2000 or XP
returns the exact path e.g. C:\Program Files\Innervations\GrandSlam\
but when run on Windows ME or 98 the path is all uppercase.  The
result is that the system reported an unhandled exception trying to
open a file with the incorrect path.

Best regards
Rob Newton



Fri, 07 Oct 2005 09:21:25 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Getting unhandled exception error with WNetOpenEnum

2. Unhandled Exception Error Unloading OLE Automation Server

3. VB HELP COMPILER - Unhandled Exception error

4. Visio 2000 - Unhandled Exception Error

5. Unhandled Exception Error on Connection.Close?

6. getting unhandled exception error -- Access violation

7. Error: An unhandled exception of type...

8. Unhandled Exception Err MSAcc97

9. Unhandled exception in Visdata.exe(rpcrt4.dll)

10. VBScript "Unhandled Exception" MSO9.DLL W2k

11. Return from unhandled exceptions after Application.ThreadException event

12. Unhandled Exception is thrown

 

 
Powered by phpBB® Forum Software