Questions tagged [outofrangeexception]
An exception that is thrown because the value of a variable is outside the allowed range
outofrangeexception
273
questions
0
votes
1
answer
66
views
VBA code is running but unable to generate excel output files
My VBA code is running but unable to generate excel output files. Can someone help me please to debug the code below. Thank you.
Sub Bill()
Dim aFile As String
' Define the output folder
...
0
votes
1
answer
54
views
System.IndexOutOfRangeException mysteriously thrown from System.Collections.Generic.List.Add(T item)
I have been struggling to figure out the cause of an exception with the following stack trace (deliberately shortened):
System.IndexOutOfRangeException: Index was outside the bounds of the array. ...
0
votes
0
answers
28
views
IndexError: index out of range in self while training a language model from scratch
I am receiving "IndexError: index out of range in self" error while I try to train a language model from scratch. I trained my own tokenizer on the training set thinking that was the issue ...
0
votes
2
answers
97
views
Initialize List<T> with index--is this a bug?
In C# you can initialize Dictionary<TKey,TValue> like this:
var dictionary = new Dictionary<int, string>()
{
[0] = "Hello",
[1] = "World"
};
You can also ...
0
votes
0
answers
36
views
Index Out of Range Exception on GridView1.SelectedIndex
I have been trying to resolve this issue for days with no result. I saw many posts on StackOverflow relating to this issue but couldn't get anything to work.
In my GridView1_SelectedIndexChanged ...
1
vote
2
answers
147
views
Multiple Date Pickers In View Causes Out Of Range Error
I have a view with multiple date pickers. The main date picker's value determines the correct range of the other date picker and am running a function onChange of the main date picker to ensure the ...
0
votes
1
answer
137
views
SwiftUI + ForEach is hitting "index out of range" while redrawing matrix with new dimensions
I'm using SwiftUI's ForEach to draw a Grid from a matrix in my view model that contains an equal number of rows and columns. I want to be able to tap a button and switch to a new matrix which has a ...
-1
votes
1
answer
1k
views
User memory limit exceeded in gee , How to resolve this error?
I'm fairly new to GEE, and I'm trying to process some imagery, then download the results. I need to classify Sentinel data to isolate different land cover types, remove clouds, and calculate ...
0
votes
1
answer
135
views
Out of range exception thrown when declaring a C++ vector on the free store
I'm working on a problem from Stroustrup's PPP book, Chapter 17 - the Drill.
I keep getting out of range errors thrown and believe I may be accessing the vector m_vec incorrectly when I am ...
0
votes
1
answer
80
views
Index Out of Range In A Recursive Call (Binary Search)
I have been trying to solve this leetcode problem. The problem is to find range of a target value in a non-decreasing list. I am searching for a target value in a list using binary search, then '...
0
votes
1
answer
118
views
Sorting algorithm works for C-array but not works for std::span [closed]
This problem happens when I am working on a insertion_sort algorithm.
I tried to implement a version for C++20's std::span but it throws a "std::span index out of range" So I turned it to &...
-1
votes
1
answer
32
views
(UWP) Indexing List Causes System.ArgumentOutOfRangeException when Accessing ComboBox
I have a problem where indexing a List will break code that is seemingly unrelated to it. Doing anything with the List will cause the exception, but if I just remove the activePeople[] the ComboBox ...
1
vote
2
answers
297
views
select_item=tree_frame.selection()[0] IndexError: tuple index out of range error coming in python Tkinter
I am having problems
select_item = tree_frame.selection()[0]
IndexError: tuple index out of range
I have an employee table, I am trying to delete a record from the table, but when I select a record ...
0
votes
0
answers
193
views
Prometheus is giving "IndexError: list index out of range"
I am trying get metric in list form using prometheus_api_client
It worked effectively a few days back but now it is throwing error for the same code.
The error occur in the following line
...
0
votes
1
answer
73
views
Index out of range/ conditional issues
So I'm trying to run a conditional that, based on the number of rows returned by an SQL query, determines whether or not I add a row to the same database or update an existing row. If the number of ...