Questions tagged [invalid-argument]
The invalid-argument tag has no usage guidance.
216
questions
0
votes
1answer
212 views
“Invalid arguments” when porting C++ code to Android
I am trying to port the following piece of C++ code to Android as part of some NDK work:
#include <fstream>
// ...
inline void trim(string & str, const string & delim = " \t\r\n")
{
...
-1
votes
4answers
637 views
iOS-error in parsing the data
In my app, I am parsing the data using JSON
NSString * urlString=[NSString stringWithFormat:@"http://userRequest?userid=bala@gmail.com&latitude=59.34324&longitude=23.359257"];
NSURL * url=[...
0
votes
1answer
956 views
highcharts - error in IE - Invalid Argument
I am getting an error in IE as:
Message: Invalid argument.
Line: 8
Char: 56
Code: 0
URI: .../js/highcharts.js
Below is the highcharts chart code..It works perfectly fine in Firefox but in IE throws ...
1
vote
2answers
875 views
Eclipse Invalid arguments error when using gstreamer
Ok, so I want to use gstreamer library.
1. Situation
I have some code:
#include <gst/gstpipeline.h>
#include <gst/gst.h>
...
GstElement* pipe = gst_pipeline_new("PipeName");
Where ...
1
vote
2answers
5k views
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 ...
0
votes
0answers
422 views
“Invalid Argument” Error in Internet Explorer
I've been receiving some strange errors when running my application, and was wondering if anybody can shed some light on them. I'm not able to post any pictures because I don't have a high enough ...
3
votes
1answer
1k views
NSExpression catch invalid arguments
I am using NSExpression to evaluate a mathematical string and it works great. However I want to have a way of catching an error when the input string is invalid, such as "3++2". Is there a way to go ...
3
votes
3answers
1k views
Make extern C++ function return a message if an exception is thrown
I would like to make my extern C++ function return a message when an exception occurs. Something like this:
extern "C" __declspec(dllexport) const char* __stdcall Calculate(double &result, double ...
0
votes
3answers
594 views
Extension method on array can not be matched when using `ref` arguments
Following is some code I'm working with; it adds methods to built-in types to find the index of an element in an array if it is in the array.
The problem I'm having is that the code for the char[]....
0
votes
4answers
801 views
JQuery/Javascript invalid argument script error on window resize in IE8
I'm getting a script error in IE8 when using the following snippet for reacting on window resize event, although the browser executes the function 'dummyFunc()' as intended:
var jq = jQuery....
0
votes
2answers
139 views
Make button only work if coredata attribute not null
I made a contacts app for fun to dive into iOS.
Basically when you add a contact you can call email or text them.
Since i use the same viewcontroller when adding them and viewing them, how can i ...
0
votes
1answer
268 views
Invalid Parameter SubTotal in PayPal MPL iOS SDK
When I try to process the transaction through the PayPal MPL for adaptive payments , I am getting "Invalid Parameter SubTotal" error. It works perfectly if amount is < 10000 but not if amount is > ...
0
votes
1answer
2k views
webView:didFailLoadWithError - (null) phone gap app for ios
I'm getting this error while loading paypal checkout page. I'm using in app browser of phonegap for this.Any idea?
webView:didFailLoadWithError - (null)
*** WebKit discarded an uncaught exception in ...
0
votes
2answers
11k views
Warning: implode(): Invalid arguments passed in functions.php on line 674
i tried to go online after finishing the website but a error occurs
Warning: implode(): Invalid arguments passed in functions.php on line 674
foreach ( $one_array_font as $font => $variants ) {
...
0
votes
1answer
813 views
c# Invalid argument for Index, null value
i just made a file editor, it contains a listview and a textbox, i made that when i select and item from the list view it appears in the textbox, the text is japanese, and when i select a japanese ...
1
vote
1answer
311 views
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 ...
0
votes
1answer
2k views
LINQ saying invalid arguments for insertonsubmit
I seem to be running into this issue with inserting data into a table in a SQL Server 08R2 using LINQ in C#. No matter what I've tried I keep getting an error with INSERTONSUBMIT().
Here is the code......
0
votes
2answers
2k views
C++ handling invalid parameters [closed]
I'm writing a C++ class. Some of its fields are STL containers, some aren't. While writing the methods I began wondering, how should I handle invalid values passed to methods? For example, some ...
2
votes
1answer
463 views
Array multiplication in Cuda produce in error [closed]
I want to multiply two arrays and I have a problem with Cuda RunTime API. There is an error: cuda runtime API error 11: invalid argument. What is the argument? Help me, please
The code:
// includes, ...
0
votes
3answers
439 views
UIButton UIButtonTypeCustom error.Unrecognized selector sent to class
I have this error with my code. I am designing a custom checkbox. For that i have a UIView which i have customized to look like a Checkbox. I have another copy of my project where i used the code and ...
1
vote
1answer
256 views
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 ...
1
vote
1answer
988 views
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 ...
1
vote
1answer
1k views
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"]
...
0
votes
1answer
2k views
listbox1.SelectedIndex (arguement out of range exception) c#/.net
I am trying to browse web pag1es using a listbox, I have added three links to it. All three links are loading well but when third link finishes loading I got this exception.
Exception is:
...
2
votes
1answer
6k views
Java web start fails to launch with “Invalid argument exception”
I am working on some application that must start another app using Java web start. The way it is designed is like this :
String commandArg = new String(
"http://143.56.56.56:8088/...
0
votes
2answers
6k views
Delayed Centered Popup Javascript using setTimeout
Trying to get a centered popup to display after a set value of time, something like this:
<script type="text/javascript">
<!--
function popup(url) {
var width = 300;
var ...
0
votes
1answer
229 views
Joomla Xmap Implode Error on Sitemap
I am getting the following error on an 'xmap' sitemap plugin used on Joomla v2.5 with the K2 cck on one of my sites as below:
Warning: implode() [function.implode]: Invalid arguments passed in /home/...
0
votes
1answer
484 views
JavaScript Error in add method using IE8
I have a piece of code here which is working fine in FireFox, Chrome and InternetExplorer 9 but is not working in the InternetExplorer 8. I'm dealing with select boxes.
var finalExclusionList = Dom....
2
votes
1answer
3k views
Invalid Argument in IE8
this has baffled me for a couple of hours now. Why do i get a 'Invalid Argument' error when testing this in IE8?
function resizeContainer() {
wHeight = window.innerHeight;
$('.container')....
-2
votes
2answers
671 views
Still Need Help! The best overloaded method match for 'XDevkit.IXboxDebugTarget.GetMemory(uint, uint, byte[], out uint)' has some invalid arguments [duplicate]
Possible Duplicate:
The best overloaded method match for 'XDevkit.IXboxDebugTarget.GetMemory(uint, uint, byte[], out uint)' has some invalid arguments
Not sure why this is being voted ...
0
votes
1answer
1k views
getting /dev/disk0 error when using dd command on iPhone mobile terminal
I am using the command dd if=/dev/disk0 | ssh username@labtop ip address 'dd of=iphone-dump.img' but am getting this: dd: reading '/dev/disk0': Invalid argument.
I am using iPhone 4 with iOs 5.1 and ...
6
votes
1answer
2k views
pyPdf error invalid argument
I'm actually using pyPdf to open, read and write the content of a PDF file.
for that I use these lines of code :
from pyPdf import PdfFileWriter, PdfFileReader
pdf = PdfFileReader(file("/myPdfFile....
3
votes
1answer
18k views
CUDA cudaMemcpy: invalid argument
Here is my code:
struct S {
int a, b;
float c, d;
};
class A {
private:
S* d;
S h[3];
public:
A() {
cutilSafeCall(cudaMalloc((void**)&d, sizeof(S)*3));
}
void Init(...
0
votes
3answers
6k views
IE Invalid argument with jquery
I have a portlet application that works flawlessly in Firefox and Chrome, but is bombing out in IE 8 and 9, BUT only if I have 5 or more instances of the portlet on the portal page. If there are 4 or ...
-1
votes
1answer
153 views
Warning: Invalid argument supplied for foreach()
I need a help to clarify why I get this warning.
data: [/* DATA URL:http://jsonservices-staging.switchautomation.com/RestService.svc/GetObservationSummaries?TotalType=...
1
vote
1answer
491 views
save pictures to harddrive
I'm trying to resize and safe a picture I've done some research and tried to get sommething working. Almost everythin works but the saving gaves me an invalid argument exception.
This is what I have:
...
0
votes
1answer
247 views
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") {
...
2
votes
1answer
2k views
'-[__NSDate managedObjectContext]: unrecognized selector sent to instance
I have some entities in core data, and they are all sub classes of a super class which has a NSDate attribute,
and all others works well when I save them,
but one of them would seemingly ...
0
votes
1answer
523 views
invoking remote java process via ssh command
It works like charm form solaris to linux(RHEL5) but gives error when executing from RHEL5 to RHEL5
apache log error:
tcgetattr: Invalid argument
Connection to server20 closed.
it also gives this ...
1
vote
2answers
3k views
Error says source path is nil
I am quite new to iOS app development.
I am trying to build a sample DB app which saves records to DB and fetches from it.
The App works well when I test with simulators. I have created a local ...
0
votes
2answers
866 views
Very simple query with implode gives implode: invalid arguments passed
It's friday, so I am obviously not seeing things strait so I thought to ask here.
I want to get a list of names from the database using:
$test = mysql_query("SELECT Names FROM Content ORDER BY Names"...
3
votes
1answer
3k views
Trouble saving file in SD card with special characters in filename
My application has a function to save file on SD card.
Following is my code to save the file
try {
File mediaDir = new File(
Environment.getExternalStorageDirectory(), "Media"...
1
vote
1answer
4k views
“Invalid argument” when sending UDP packet, but which?
My C++ application is sending binary data as UDP packets. The sendto() call returns EINVAL (Invalid argument), but I don't see anything wrong with the parameters I'm passing.
I did an strace of the ...
2
votes
1answer
916 views
Cufon IE Invalid Argument
Okay, I'm a little stumped with this one. I am usng Cufon to replace my text with a non-web standard font. This is a script I've used an aweful lot & never had a problem with it in the past. Along ...
1
vote
1answer
210 views
Strange NSNumberFormatter crash
The code is simple:
static NSNumberFormatter *numberFormatter = nil;
if (numberFormatter == nil) {
numberFormatter = [[NSDateFormatter alloc] init];
[numberFormatter setNumberStyle:...
0
votes
1answer
2k views
Powershell: Format-Table : Illegal key count
I'm getting the following error and I don't understand why or what it's asking for.
The object I'm trying to display in a table is:
function newURLObject()
{
# param ([String]$Value, [Int]$Count = "...
1
vote
2answers
2k views
BSD Sockets Invalid Argument at connection
I keep getting an invalid argument error when I try to connect the client to the server. A couple threads online said this can happen when addrlen is not right, but I tried changing it to a literal ...
3
votes
4answers
10k views
Need help with simple powershell command copy using foreach
I'm new to powershell and this question will prove that point. I'm trying a simple task from the command line where I have a txt file containing filenames separated by semicolons like...
fnameA.ext;...
4
votes
1answer
4k views
Perl IO::Socket::INET confusing “Invalid argument” error
Consider the following snippet of a Perl script:
use IO::Socket;
# ...
my $sock = IO::Socket::INET->new(
PeerAddr => $host, # e.g. "google.com"
PeerPort => $port, # e.g. 80
Proto ...
1
vote
2answers
645 views
getting odd error when calling python script within another python script
I am getting an IOError when calling a python script(script2) within another python script(script1).
Script 2 runs fine if called stand alone, however, if I call it from within script one, i get the ...