CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2007
    Posts
    491

    Compatibility problem

    I encountered a compatibility problem with my program. I am using XP SP2, and the program encounters a problem when I try to run it on XP SP3 or Vista.
    When I tried to compile it on Vista, it ran well on Vista but failed to run in the other two windows versions.
    The 3 computers have the SAME dot net framework version (version 3.5).
    The program is a windows application, and it fails before the main form is loaded.

    Here is some information about the exception thrown:
    Code:
      System.ArgumentException was unhandled
      Message="Parameter is invalid."
      Source="System.Drawing"
      StackTrace:
           at-  System.Drawing.Bitmap..ctor(String filename)
           at-  AntiCheatForm.InitializeComponent()
           at-  AntiCheatForm..ctor()
           at-  AntiCheatForm.Main()
      InnerException:
    I never come against such problem in the past, so I don't really know how to deal with it.
    Does anyone here know what may cause the problem, or can tell me about a tool that will help me spot it?
    Thanks in advance.

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    210

    Re: Compatibility problem

    If you figured out the source of the exception, you should be able to fix it.

    Did you set some breakpoints and run the app step by step? Where does the exception arise and how does your code looks like?

  3. #3
    Join Date
    Jan 2007
    Posts
    491

    Re: Compatibility problem

    That's the problem - I cannot debug, because it works fine on the computer I compile it, and when I run it I acually compile it too.
    If I could set some breakpoints it would be easy to find it, but I can't.
    And the information about the exception doesn't tell me much :S

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

Featured