invalid-argument

Using a vb.net dll in c#. Getting 'invalid argument'

梦想的初衷 提交于 2020-01-16 18:20:09
问题 Got a strange one and I know it is something silly but I can't see it for anything! I have a DLL created in VB.net (No I can't change it! :-)) and am calling it from C#. The problems come at the point the object is created in C# and I get the message that it has "some invalid arguments". The constructor code in the DLL is as follows: Sub New(ByRef Connection As IConnection) The code in C# is: IConnection conn = new Connection(); CustomObject test = new CustomObject(conn) It is happy with the

SystemUtil.Run in UFT gives me “invalid procedure call or argument”, Why?

≡放荡痞女 提交于 2020-01-07 03:57:07
问题 I'm using SystemUtil.Run (pathName) in UFT, VBScript. But it gives me invalid procedure call or argument. I'm sure about pathName, I'm sure about the command, I'm sure about everything. What do you think might be the cause? 回答1: If you look at the examples here, you'll see that the approved call is SystemUtil.Run pathName (passing pathName per reference) instead of SystemUtil.Run (pathName) (passing a const copy). Eric Lippert's essay should help you to understand the use of () in VBScript.

iOS-error in parsing the data

爷,独闯天下 提交于 2019-12-13 08:52:07
问题 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=[NSURL URLWithString:urlString]; NSMutableURLRequest * request=[NSMutableURLRequest requestWithURL:url]; NSError * error; NSURLResponse * response; NSData *data=[NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error]; NSString * outputData=[[NSString alloc]initWithData:data

Invalid Parameter SubTotal in PayPal MPL iOS SDK

强颜欢笑 提交于 2019-12-12 00:39:14
问题 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 > 10000. Here is my code -(void)processSplitPaymentWithAdminPayPalId:(NSString*)adminId sellerPayPalId:(NSString*)sellerId withAdminPercentage:(NSNumber*)adminPercentage forTotalAmount:(NSNumber*)totalAmount andShippingCharges:(NSNumber*)shippingCharges { DLog(@"!!!------------------------------------

IE Invalid argument with jquery

淺唱寂寞╮ 提交于 2019-12-11 19:16:11
问题 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 less instances of the portlet on the page, it works fine in IE too. The error I see when I have 5+ instances of the portlet on the page is: SCRIPT87: Invalid argument. jquery-1.5.2.min.js, line 16 character 25442 The code uses jQuery and a handful of plug-ins, namely jqGrid. Here is what I have

No shape error in tensorflow graph construction but getting shape mismatch error during graph computation

和自甴很熟 提交于 2019-12-11 05:32:31
问题 There occurs no error in tensorflow graph construction, but I get a shape mismatch error during graph computation in tf.gradients (I guess that the error is in back propagation). This is the error I get: InvalidArgumentError (see above for traceback): Input to reshape is a tensor with 16777216 values, but the requested shape has 4096 [[Node: gradients/truediv_grad/Reshape = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0 /device:GPU:0"](gradients/truediv_grad/Sum

Jquery problems in IE8

可紊 提交于 2019-12-11 02:49:21
问题 Jquery runs fine in Safari and Firefox. In IE8 (using the Developer Tools), I get the error: "Could not get the position property. Invalid argument jquery-1.3.2.js, line 12 character 12949". Using debugging, the script highlights the characters {J[G]=K}. I have no idea what this does, but it seems to cause the problem! The result is when a thumbnail image is clicked in one of my galleries, the image does not open in IE8. If anyone understands this or how to correct it, I'd be very grateful!

NSExpression catch invalid arguments

南笙酒味 提交于 2019-12-06 06:34:43
问题 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 about doing this instead of the application terminating due to 'NSInvalidArgumentException'. Sorry, I am fairly new to objective-c. The code I am using now is: NSExpression *exp = [NSExpression expressionWithFormat: string]; NSNumber *result = [exp expressionValueWithObject:nil context:nil];

NSExpression catch invalid arguments

久未见 提交于 2019-12-04 13:45:07
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 about doing this instead of the application terminating due to 'NSInvalidArgumentException'. Sorry, I am fairly new to objective-c. The code I am using now is: NSExpression *exp = [NSExpression expressionWithFormat: string]; NSNumber *result = [exp expressionValueWithObject:nil context:nil]; answer = [result stringValue]; I think NSExpression is not the right tool for the job here. The class is