Results 1 to 6 of 6

Thread: InvalidProgramException (Fixed, Thankx)

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Posts
    3

    InvalidProgramException (Fixed, Thankx)

    I'm getting this exception with code that I believe there's nothing wrong with.

    The first time I got the exception it just wouldn't go into a particular method call.

    So I commented out the method call - no exceptions.

    I took just the lines of code in the method and inserted it in place of the call, and got the exception.

    Seems like as my code grows to something bigger the exception occurs.

    Help.
    Last edited by hjmanlig; Aug 6th, 2004 at 12:49 AM.

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,

    Whether you believe it or not there is obviously something wrong with your code, so post it. The forum Crystal Ball has not been working lately
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  3. #3
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    MSDN says
    The exception that is thrown when a program contains invalid Microsoft intermediate language (MSIL) or metadata. Generally this indicates a bug in the compiler that generated the program.
    What are you using to compile?

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Posts
    3
    To compile, I'm using Visual Studio .NET (.NET Framework 1.1 SP2).

    What I meant by "I believe that there is nothing wrong with the code" is that all the code in question, compiles (no errors). And just running the code (the method causing the exception) works just fine. (After reading my post, I thought that someone would reply of the sort, I would have, he he he)

  5. #5
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    I'd take taxes' advice and post the offending code. Maybe someone may see somthing.

  6. #6
    Fanatic Member alexandros's Avatar
    Join Date
    Oct 2002
    Location
    Milky Way Galaxy
    Posts
    694

    Re: InvalidProgramException (Fixed, Thankx)

    i got the same exception . can you please say what it was?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width