473,394 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

random exception occurring with Bitmap..ctor() and invalid params

Hey,

I'm having an emergency problem with my software and am under a very very tight deadline, so I thought I could post here as a last resort...



I randomly get an exception pop up that gives me the following approximate stack trace:


"Argument Exception: Invalid parameter used.
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
...
at System.Drawing.Icon..ctor(Int32 width, Int32 height).
...
"



i DO have some bitmaps that i created in mspaint that are put into picture boxes on the window designer, but my GUI uses the .net default icon. this exception occurs at random times (sometimes when scrolling horizontally thru a listview, sometimes when flipping tabpages... there really is no set time that it ever happens. To make matters worse, it NEVER gives a line number at which the error occurred. the GUI loads up fine, and i can be running for days without seeing this error, but it will occasionally rear it's ugly head.

none of my code tries to act on any of the bmp files. once i put the files into the GUI designer, i never touch them again. i don't try to do any converting from one type of pic to another or anything of the sort. These bmp files have been used on past GUIs without creating a problem.

this GUI does deal with high data throughput, so maybe i am overtasking the computer, which causes this error? I dont know..... at this point, i have no clue what is wrong.


if anyone knows anything about this, please help... i'm in a world of hurt =(



thanks in advance.
Jan 17 '08 #1
1 1818
kenobewan
4,871 Expert 4TB
Try searching the site, here is one eg:
ArgumentException: Invalid parameter used at Bitmap.SetPixel
Jan 17 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: rubixxcube | last post by:
Randomly my application throws the following exception, and of course it only happens in production and i can't reproduct it in Testing. Does anyone know what causes the following exception: An...
3
by: Tony Johansson | last post by:
Hello! When you allocate object dynamically which mean on the heap I find that a problem when using exception. What is the prefer method to handle this kind of problem. //Tony
0
by: guy | last post by:
i have a method which throws an exception. the thing i dont understand is that the only change between the two versions is a line of code AFTER the one that throws the exception - see code below...
3
by: Don McNamara | last post by:
Hi, I've hit quite a strange problem with XmlSerializer on my W2K3 server. When I serialize/deserialize using an exe on my local computer (XP), everything works fine. When I put the code out on...
104
by: fieldfallow | last post by:
Hello all, Is there a function in the standard C library which returns a prime number which is also pseudo-random? Assuming there isn't, as it appears from the docs that I have, is there a...
2
by: Chris Stiefeling | last post by:
Hi, I am experiencing a strange problem. I am reading and writing xml files via XmlDocument and XmlTextWriter. In the debugger everything works fine but outside the debugger (debug or release)...
4
by: tshad | last post by:
I am trying to set up an Image authorization where you type in the value that is in a picture to log on to our site. I found a program that is supposed to do it, but it doesn't seem to work. ...
6
by: Pieter | last post by:
Hi, For some procedures that throws exceptions, I would like to show different messages to the user depending on what type of exception he's getting. For instance this one: when the file is...
41
by: Zytan | last post by:
Anyone do any tests on it? I would assume it has improved since C's rand(), but who knows. For some reason, and it could just be coincidence, I seem to see patterns. But even a crappy rand()...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.