Questions tagged [invalid-argument]

263 questions
-2
votes
5 answers

invalid type argument of unary '*' (have 'int') lowest element in array

I want to find the lowest element in the array using a function lowest(). But this program does not work. It shows the error invalid type argument of unary '*' (have 'int') Here is the code: #include int lowest(int *j, int n) { //For…
-2
votes
1 answer

PHP copy() failed to open stream: Invalid argument

I am trying to upload a file from my brower->PHP script->Server. My browser and PHP script lie on the same server. I am using xampp on this. The server where I have to upload this file is different. Here is my code: $fdir =…
-2
votes
1 answer

sending checkbox data in table through mail

I am trying to send selected check-box data through mail in the tables structure but getting below error: implode(): Invalid arguments passed static function mcontent($chkbox){ $sql = "SELECT station,reach,language,rate FROM `radio_city` where…
Jyoti Duhan
  • 988
  • 1
  • 16
  • 26
-2
votes
2 answers

ArgumentOutOfRangeException was Unhandled C# error

InvalidArgument=Value of '4' is not valid for 'index'. Parameter name: index here is my code if (lvnames.Items.Count > 0) { for (int x = 0; x < lvScratch.Items.Count; x++) { **lvnames.Items[x].SubItems[4].Text =…
-3
votes
0 answers

"Exception: Invalid argument: replacement" Google Sheets Apps Script

I have copied and edited a Google Sheets Apps Script for creating google docs using a template and replacement values from a google sheet. It was working, and then I changed a bunch of stuff and now it is returning the error message: "Exception:…
-3
votes
2 answers

Invalid template argument in vector / c++

I am trying to fill a vector that takes multiple types of arguments that I have defined. However, I am getting invalid template argument error despite adding vector library and using namespace std. Is it because I am trying to put the class names I…
sdcoders
  • 19
  • 2
-3
votes
1 answer

"The best overloaded method match for ... has some invalid arguments", work on the Kinect v2

I'm working on Gesture detection of my right hand with the Kinect v2 and got my hands on a good sample that I could use, but got stuck with the converting of the code when the error: "The best overloaded method match for ... has some invalid…
Nocu
  • 3
  • 1
-5
votes
1 answer

std::stoi() takes first number in string?

I was converting string values into integer values with std::stoi() in my program when I noticed that it returned integer value of 25 from a string value of "25,". This confused me because there is an exception thrown for invalid_argument when the…
1 2 3
17
18