Questions tagged [invalid-argument]
263 questions
1
vote
2 answers
What causes warning " Invalid argument supplied for foreach()" in this case?
I cant grasp what in this case is causing the invalid argument warning. I have seen that there is plenty of information about the warning itself, but as I am new (started today with php) I cant figure it out even if I have read many questions about…

AV67
- 43
- 1
- 7
1
vote
1 answer
Passing a jagged array to a method in C#
I know this is the sort of syntax question that should be easily answered by Google, but it hasn't been.
I have a method that accepts a jagged array, and alters it:
public void resetWordList(ref char[][] wordList)
It's an array of words, which are…
user4668437
1
vote
1 answer
Crystal reports - connection to JDBC failed
I am trying to make a connection to JDBC(JNDI) in Crystal Reports and I get the following error :
Invalid Argument provided.
Details: Java Server startup failure. Please verify the PATH (JDK), CLASSPATH and IORFileLocation properties in the…

Gabriela
- 51
- 1
- 4
1
vote
0 answers
VS 2008: Fatal error C1083: Cannot open include file: ...: Invalid argument
I've seen lots of questions about Fatal Error C1083 "No such file or directory", but in my case I am seeing "Invalid argument".
I am on 32-bit Windows trying to compile some C++ code which uses Boost. This used to work, so something in our setup…

Dave Wade-Stein
- 255
- 3
- 14
1
vote
1 answer
Invalid command using stats in gnuplot
so I'm fairly new to gnuplot and I'm stumped by an invaild command error I get when I try to use stats on a file in gnuplot.
The command in question:
gnuplot> stats "file.dat" using 1
stats "file.dat" using 1
^
invalid…

shnewto
- 356
- 3
- 12
1
vote
3 answers
Broken VB6 Collection. Invalid Qualifier
I am attempting to use a collection to store only one unique copy of each string returned from a database query.
When I come across a new one. I see if I already have it. If I do not, I add it to my collection and to my combobox. else I keep…

jth41
- 3,808
- 9
- 59
- 109
1
vote
1 answer
Semop: Invalid argument
I have this code that basically makes a P on the semaphore with number sem. The semaphore is in a pool. The problem is that sometimes I get Invalid argument and I can't figure out why.
bool sem_p(key_t key, int sem){
int semid = semget(key, sem,…

user3266496
- 23
- 1
- 3
1
vote
2 answers
Eclipse Invalid arguments error when using gstreamer
Ok, so I want to use gstreamer library.
1. Situation
I have some code:
#include
#include
...
GstElement* pipe = gst_pipeline_new("PipeName");
Where gst_pipeline_new is declared in gstpipeline.h:
GstElement*…

shycha
- 440
- 5
- 13
1
vote
2 answers
Git push to remote fails: Unable to create../refs/heads/master.lock: Invalid argument
I have my git bare repo initialized in remote server folder /home/bare/mygit.git
I've cloned this repo:
git clone user@ip.of.my.server:/home/bare/mygit.git .
Then I was working with project, doing commits/pushs, etc...
But today I noticed when I…

Ilia Shakitko
- 1,417
- 2
- 18
- 25
1
vote
1 answer
cudaMallocPitch 'Invalid Arguments' despite copying guide?
I have been happily ignoring this for a while, but it has become quite a problem now - I hope you guys can help me out.
I am calling cudaMallocPitch, but whatever I try, It keeps giving me the red underlining and the 'invalid arguments' error. Even…

Boyentenbi
- 417
- 4
- 14
1
vote
2 answers
appending a jquery object throws invalid argument in IE
I am trying to create a jQuery plugin that will clone a form to an iframe then submit a form. It is a hack to fake an ajax file upload. I also know there are plugins like this already, but none that I have trie meet my needs. I have a problem…

arren_the_imposter
- 13
- 4
1
vote
1 answer
Invalid arguments in MVC3
I am having trouble getting this code to compile. I am new to MVC/Stackoverflow/programming and trying to follow a tutorial. Also, I tried looking some things up and saw some options with Nullable values, but wasn't having much luck.
public class…

mrshickadance
- 1,213
- 4
- 20
- 34
1
vote
1 answer
JS getElementById with empty string: Invalid procedure call or argument
I have a function, which has a parameter sCellId passed in. I'm trying to get its element using
var tdElement = document.getElementById(sCellId)
Now I have a null check after it, and I fully expect it to be null sometimes, which is fine (if…

Jason Hu
- 1,237
- 2
- 15
- 29
1
vote
2 answers
Using UIDocument saveToUrl throws an NSInvalidArgumentException on NSURL
I'm attempting to make a quick test to synchronize a file to iCloud. This is the simple snippet I have:
url = [[ubiquityContainerURL
URLByAppendingPathComponent: @"Documents"]
URLByAppendingPathComponent:@"test.txt"];
doc =…

CodingBeagle
- 1,888
- 2
- 24
- 52
0
votes
1 answer
IE - Invalid Argument jQuery error
I'm getting the invalid argument error and can't figure out what's causing it.
Hoping someone could help me out.
The script stops running after this piece (probably) of code:
if (type == "all") {
var classe = target.substring(1) + '-' + color +…

gverri
- 389
- 1
- 3
- 11