Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

I’m maintaining a legacy VB.NET 3.5 Windows Forms app that worked perfectly on Windows 10 32-bit using MySQL ODBC Connector 5.1/5.3. Recently, we migrated to a Windows 11 64-bit machine. Without ...
John Romel Tinasas's user avatar
0 votes
1 answer
12 views

Can someone please help me to know why below piece of code giving me Overflow exception even if I use long and double datatype of variable numValue: tring[] inputValues = new string[] { "3", ...
tanzeel ahmed shaikh's user avatar
1 vote
2 answers
680 views

I am trying to read a large .npy file in CSharp. In order to do that i am trying to use the NumSharp nuget. The file is 7GB jagged float array (float[][]). It has ~1 million vectors, each vector is a ...
Samer Aamar's user avatar
  • 1,408
0 votes
1 answer
1k views

I have a program that loops through json and grabs the values. This works find until it gets to an integer that is above what int32 handles. 2021-09-10 08:00:02.7576|ERROR|System.OverflowException: ...
rcmpayne's user avatar
  • 163
0 votes
3 answers
112 views

I created 3 three containers in row, it is working perfectly on emulator but when i run app on my andriod phone it is giving me right overflowed by 20 pixels error. i found the solution to wrap it in ...
TimeToCode's user avatar
  • 1,868
1 vote
2 answers
77 views

I need to express and use the following equation in Python code. However, I am getting an OverflowError when I substitute X = 340.15 in: Y = [e^(-989)] * (X^171) I did a quick search on Google but ...
john li's user avatar
  • 13
0 votes
2 answers
898 views

Does C# compiler throw OverflowException for floating-point numeric types? I tried this to figure it out: try { checked { double d = Convert.ToDouble(Math.Pow(double.MaxValue, double....
Hossein Ebrahimi's user avatar
-2 votes
1 answer
818 views

Hi I was solving a very basic problem on Hackerrank about determining Mini-Max Sum of all the values in an integer array. Basically given an array of 5 values like [1, 2, 3, 4, 5], the minimum sum ...
Naphstor's user avatar
  • 2,536
1 vote
1 answer
225 views

This may seem like a duplicate question, and maybe it is, but I've checked many other sources and none of the solutions seem to work. The number I'm trying to calculate is 999,999^999,999, and it's ...
Sitontao's user avatar
0 votes
1 answer
257 views

Problem This is partially me being my own worst enemy. I have unit tests that verify my ability to write and then retrieve all different base data types to/from a SQLite database. Among my tests I ...
Matthew Morgan's user avatar
1 vote
0 answers
427 views

I know the title isn't the best, but the error is not clear at all to me. The error I have is this: 019-04-15 14:28:45.270 ERROR 12644 --- [nio-9090-exec-6] o.a.c.c.C.[.[.[/].[dispatcherServlet] : ...
Usr's user avatar
  • 2,888
-4 votes
2 answers
2k views

I tried to save the MaximumApplicationAddress from SystemInfo into an uint, but I get a System Overflow Exception: System.OverflowException: The arithmetic operation caused an overflow I tried a lot ...
Bayern1347's user avatar
2 votes
1 answer
86 views

I'm trying to merge 2 colors and to do so I created a very simple function: Public Function MixColors(color1 As Color, color2 As Color) As Color Dim a, r, g, b As Byte a = (color1.A + color2....
des's user avatar
  • 67
1 vote
1 answer
152 views

I use File​Activated​Event​Args args to do the file association in my video player app. So I when user double clicks a video file it opens and plays the file in my app, also it gets all the ...
Muhammad Touseef's user avatar
2 votes
1 answer
2k views

In Python 3 I have a class representing a range [x,y] of values and computing the length of such range. If the length is too large, I'm not sure how to catch the OverflowError exception inside the ...
Ricky Robinson's user avatar
0 votes
1 answer
309 views

I tried various solutions for below, but I still get the errors as described: log1p(1 + math.exp(comp * -1)) Error: OverflowError: math range error So I changed it to: log1p(1 + np.exp(comp * -1)) ...
user3868051's user avatar
  • 1,269
0 votes
1 answer
409 views

I need some help. I have created a view in sql 2012 that will take a persons id# and display an entry date and the balance that was entered on that date. I've tried to convert the balance and even ...
awilso11's user avatar
-2 votes
3 answers
7k views

I have 2 methods, shown below, and i can't get it to work. I am trying to open a .png file from a OpenFileDialog and display it on a ImageBox: public static Bitmap ToBitmap(this string input) { ...
Techcraft7's user avatar
2 votes
2 answers
464 views

Get an overflow exception when trying to run an eof statement in the while loop Value was either too large or too small for a character string filePath = @"C:\Users\Klanix\Desktop\NewC#\testfile2.txt"...
ThatOneCoderDude's user avatar
1 vote
1 answer
396 views

I'm trying to find out if this scenario that caused an OverflowException could possibly be something that could be caught by static code analysis. //IntPtr position = ... position = (IntPtr) ((int) ...
Kyle V.'s user avatar
  • 4,812
0 votes
1 answer
933 views

I keep getting an error when it come to getting a percentage as a part of a program. The code is below as well as an image of the error pop up. Also yes yes I know I can some up some code line and ...
Colondor 0319's user avatar
-1 votes
1 answer
54 views

How are you? In order to make the program I am working on more user-friendly and easier to deploy on Windows machines, I am in the process of converting an algorithm from Python (which works wonders) ...
user7831458's user avatar
0 votes
1 answer
2k views

I am trying to serialise my POJO which looks as follows using Jackson Object mapper, I get stack over flow exception, please help on this. Thanks in advance public class ServiceCategoryModel { ...
sabarinathan u's user avatar
0 votes
0 answers
124 views

In our windows service, an OverFlowException occurs (by a third party dll). However, there is a nice try/catch block available and as I know, this should NOT terminate the program and it is handle-...
Sameers Javed's user avatar
0 votes
1 answer
102 views

I am getting an error when I try to migrate a old project on my new computer. On the old computer the database worked fine. The content of the database is of little importance, thats why I didnt bring ...
AllramEst's user avatar
  • 1,509
11 votes
1 answer
778 views

I'm using Decimal.Round(decimal d) MSDN says it can throw OverflowException https://msdn.microsoft.com/en-us/library/k4e2bye2(v=vs.110).aspx I'm not sure how that can happen. I tried looking over ...
Amir Katz's user avatar
  • 1,037
0 votes
0 answers
1k views

I've got problem that makes me crazy - I think that's so easy that I can't even think about what is causing my problems. I'm sending data (fft of generated acustic wave - frequencies and magnitude) ...
Jejh's user avatar
  • 85
1 vote
0 answers
404 views

I have a preposterously large page (tens of thousands of pixels high and across, with tens of thousands of nodes and links) on an XPS document that I am attempting to convert to an image. The XPS ...
Interminable's user avatar
  • 1,420
2 votes
1 answer
482 views

I'm currently making an app in C# which make use of LinkLabels. I have a function that add a new link for each element in a certain array. However, it happens that the array have more than 32 links, ...
Binyuan Sun's user avatar
3 votes
1 answer
5k views

When converting double (or float) to decimal, overflow exceptions are possible. So I've written this small extension method that prevents this by saturating: public static decimal ToDecimalSafe(this ...
relatively_random's user avatar
2 votes
0 answers
44 views

Why isn't this code idempotent? double.Parse(double.MinValue.ToString()) This will throw an OverflowException with the message Value was either too large or too small for a Double I would expect ...
Kirk Woll's user avatar
  • 77.8k
1 vote
2 answers
334 views

I have following code in C which will generate keys based on input serial number. unsigned int32 passkey(unsigned int32 snumber) { char snstring[11]; unsigned int32 pwd; int i = 0; ...
Рахул Маквана's user avatar
5 votes
1 answer
103 views

In 7.8.3. of the C# Specification regarding the Remainder operator it states the following: If the left operand is the smallest int or long value and the right operand is -1, a System....
Dirk Strauss's user avatar
0 votes
0 answers
577 views

I have a really strange error, with Delimon.Io library, I got an OverflowException when I call a Directory.Exists for an existing directory, ie. Delimon.Win32.IO.Directory.Exists(@"c:\temp") The ...
Alkampfer's user avatar
  • 1,377
0 votes
1 answer
170 views

Is there a built-in way to get max value on arithmetic overflow? Here's what I need: var val = byte.MaxValue + 1; //should be rounded down to byte.MaxValue MyByteProperty = val; P.S. I know I can ...
Shimmy Weitzhandler's user avatar
1 vote
1 answer
360 views

This code compiles successfully, but causes System.OverflowException in Visual Studio 2013 during execution: Sub Main() Dim a As ULong = 14345389830683080345D Dim c As ULong = 1 Dim x As ...
Dmitriy Zakablukov's user avatar
1 vote
2 answers
3k views

I want to cast an Int32 value to Int16 value. Data lost when casting is not a problem to me. But a System.OverflowException says the Int16 type value is too large or too small. Dim num As Int32 = &...
Yen NQ's user avatar
  • 797
0 votes
0 answers
311 views

I have a problem with a convert.ToDouble and I don't find the answer on the net, stackOverFlow, etc... I try to convert this string value "7,8" (same pb with another : "4,84232") to double. Here ...
Damian's user avatar
  • 141
0 votes
2 answers
810 views

I've got this code: String testData = File.ReadAllText("siteQueryTest.txt"); XDocument xmlDoc = XDocument.Parse(testData); List<SiteQuery> sitequeries = (from sitequery in xmlDoc.Descendants("...
B. Clay Shannon-B. Crow Raven's user avatar
0 votes
1 answer
368 views

For some reason after a while my code raises, OverflowError: cannot convert float infinity to integer. I can't see any reason why it would do this, there is little use of floats and no use of the inf, ...
tox123's user avatar
  • 325
49 votes
3 answers
3k views

int y = -2147483648; int z = unchecked(y / -1); The second line causes an OverflowException. Shouldn't unchecked prevent this? For example: int y = -2147483648; int z = unchecked(y * 2); doesn't ...
Marcel Niehüsener's user avatar
2 votes
1 answer
69 views

I'm in a programming high school course, and my assignment is to write a program that uses: OverflowException, or NotFiniteNumberException. It has to be arithmetical and I've tried everything I can ...
Kylie's user avatar
  • 51
1 vote
0 answers
45 views

Short Description: Improper application validation passes invalid data into SQL update statements executed in SQL Server 2012, causing a server-side error which is not handled by the application. ...
JosephMoeller's user avatar
1 vote
1 answer
435 views

I have some drawing code for an editor I am working on. It draws a few lines and an image buffer. After adding a zoom features and calling ScaleTransform I get an OverflowException thrown in my paint ...
Kristopher Ives's user avatar
3 votes
1 answer
121 views

I'm reading about how to force an operation to throw an overflow exception, and on the "try it yourself" section, I had it in a different place than the book. I'm curious if there's a performance ...
krillgar's user avatar
  • 12.9k
8 votes
1 answer
2k views

Catching Python's OverflowError after some dumb calculation, I checked the error's args and saw it's a tuple containing an integer as its first coordinate. I assume this is some kind of error number (...
Bach's user avatar
  • 6,267
0 votes
2 answers
2k views

I'm working on a vb.net app that needs to add multiple integers together. The integers are to be unsigned, and 32 bits in length. It is expected that the integers will be so large that they will ...
stormCloud's user avatar
  • 1,003
1 vote
1 answer
100 views

I am writing a code that do some arithmetic on long values and it should NOT generate an overflow exception. The code needs to be compiled both on windows (visual studio ) and Linux (ARM Linux). Is ...
mans's user avatar
  • 18.4k
-2 votes
4 answers
5k views

I'm extracting a date-formatted string (yyyy-MM-dd) and then converting it to a DateTime and inserting it in the database using a storedprocedure. But I keep getting System.Data.SqlTypes....
user1021726's user avatar
2 votes
0 answers
130 views

I'm getting an OverflowException when trying to query an SDO_ORDINATE_ARRAY from an Oracle database with NHibernate. The exception is thrown in Oracle.DataAcess in the public static unsafe object ...
knittl's user avatar
  • 269k