Click to See Complete Forum and Search --> : Compatibility problem


Talikag
September 8th, 2008, 02:57 PM
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:

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.

MNovy
September 9th, 2008, 02:00 AM
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?

Talikag
September 9th, 2008, 07:34 AM
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