Questions tagged [out]

In c#, the out keyword causes parameters to be passed by reference from the callee to the caller. The parameter doesn't have to be assigned going into a function but must be assigned before coming out of the function.

out
Filter by
Sorted by
Tagged with
1 vote
1 answer
341 views

uninitialized out port y(3 downto 0) has no driver. # This port will contribute value (UUUU) to the signal network

Barrel.vhd file library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity Barrel is port (w :in std_logic_vector(3 downto 0); s:in std_logic_vector (1 downto 0); y:out ...
1 vote
1 answer
64 views

java.lang.IndexOutOfBoundsException at TimetableMainActivity$GetXML.onPostExecute

im having an issue with my code. Im passing data from one activity to another, with no issue, but when i try to show that schedule im choosing from a spinner, it gives me an index out of bounds ...
0 votes
1 answer
180 views

Remove the frame on clickable HTML elements

I would like to know if there is any way to remove the dotted frame (on Firefox) around an HTML clickable element (a, button, etc.) that appears when you click, hold click and focus it. Thank you
3 votes
2 answers
1k views

how can I get an MOQ setup to alter an out parameter based on input?

MOQ supports setups for out parameters - no problem. I'd like to be able to set the parameter based on what's passed in the invocation, via Returns() or Callback(). My use case involves mocking out a ...
1 vote
0 answers
255 views

The TCP/IP connection to the host localhost, port 1433 has failed. Error: "connect timed out. "

This is my Java code: import java.sql.*; public class Database_connect { public static void main(String[] args) { String url= "jdbc:sqlserver://localhost:1433;DatabaseName=Reena;instance=...
-3 votes
1 answer
324 views

How to combine multiple .out files to a single file in Windows environment?

I was given hundreds of files in .out format. I appreciate if you can help me find a way to combine them all in one file. I have no Linux knowledge and will prefer to work it out with Python
1 vote
1 answer
346 views

Ada: Check if OUT parameters have changed (from NULL) after procedure call

Given a procedure with several OUT parameters, of different types, all initialised as null, how can I check if their value changes after the procedure call? i.e. If they are no longer null. I thought ...
2 votes
3 answers
9k views

How to find out if bluetooth is connected?

Can someone teach me how can I find out if bluetooth is connected to other device (mobile, headset, etc.)
1 vote
1 answer
179 views

Risk index out of range

I have seen many posts treating the same question but haven't found an answer to my specific question. I am running two loops: -loop 1 takes a bunch of different stocks names and add them to yahoo ...
4 votes
2 answers
91k views

index 4 is out of bounds for axis 1 with size 4 Code with Double Sum

Hi I have the following function which produces an out of bounds error: import numpy as np import pylab as plt import scipy import math import sympy as sy T = sy.Symbol('T') rho = sy.Symbol('rho') ...
0 votes
2 answers
56 views

Learning C# How does ref and out allow this to work in this specific instance?

class Program { static void Main(string[] args) { double weight; string num; num = getWeight(out weight); Console.WriteLine(num + " lb = " + lbToKg(weight) + "...
0 votes
1 answer
44 views

ResourceExhaustedError When running network demo fourth try

I have 1600 videos and I want to make joint annotation label data about videos. I've already made the open pose network and I put my videos as input of the network and saved the joint data as json ...
1 vote
1 answer
158 views

PHP Image Resize Fatal error: Out of memory

I have following PHP code that resizes my pictures to desired size: /* POSTER - resize */ $remote_file = $castImages[$name]; $new_width = 296; $...
4 votes
3 answers
460 views

Why does the "out" parameter exist in C# as a language construct? [closed]

Question Why does the "out" parameter exist in C# as a language construct? Elaboration on the question Why does it exist in the first place? Aren't there better language features to get the same ...
1 vote
1 answer
851 views

Integer out parameter null issue in ADO.NET while calling through procedure

I'm facing one issue when I try to get output value from SQL Server stored procedure which is of INT type, then I'm getting NULL value ☹ . Here is the stored procedure: CREATE PROCEDURE dbo....
0 votes
4 answers
719 views

c# out parameter, why I have assigned the value to my variable, still can't return?

I have a simple method like below, private int Increment(out n) { int n = 46; return n++; } as my understanding, using out must initialise the variable first,...
0 votes
2 answers
114 views

How to work with `out` parameters in `Setup`/`Verify` for mocked class methods?

public class MyClass { public virtual void Method1(string par1, int par2) { // ... var result = new Dictionary<byte, string>(); for(var i = 0; i < 100; i++) { ...
-1 votes
3 answers
332 views

C# out parameter for delegate not maintaining value [duplicate]

I have a function which takes a custom delegate as parameter in order to achieve the following: delegate T TryParseDelegate<I,O,T>(I input, O output); private string[] ReadMultiStringValue (...
1 vote
4 answers
7k views

C# - check if List<> is initialized

I have function that accept out List<int> list as parameter. How can I check if list is initialized or not? This code gives me the Use of unassigned out parameter 'list' error: public void ...
1 vote
1 answer
1k views

Android relatively out wrap_content and match_parent

I have an issue with a RelativeLayout. It is a custom view for a List Item. I have a RelativeLayout, it's height is set to wrap_content. Inside of it are three Linear Layouts, one of which has it's ...
1 vote
0 answers
446 views

Terminal Operation Times Out (Recent Python Install Issues)

I was stupid and may have deleted some dependencies for mac's base python (and/or python 2.7) as root when trying to uninstall anaconda navigator. Now every Every time I try to perform an install or ...
4 votes
0 answers
75 views

With C# 7.x syntax additions, is there a version of "x ?? (x = MakeX())", where x is assigned via an out parameter?

One idiom in C# to 'create a value on first access'1 is to use something like the following2: public string X { get { return _x ?? (_x = MakeX()); } } Given a slight variation, where ...
-6 votes
1 answer
1k views

Memory allocation for 'Ref' and 'Out' parameter, any difference? [duplicate]

In C#, ref and out keyword. How to it affect memory management? Is there any difference in memory management for ref and out keyword?
1 vote
1 answer
654 views

casting ctypes c_void_p to C output parameter

first I know about Python ctypes, pass c_void_p as an out parameter to c function and their suggested solution BUT I was not able to make it work, with their answer. My Problem is similar anyways... ...
2 votes
0 answers
38 views

C# Generics - out keyword - 'method has the wrong return type' [duplicate]

So, I have this program here: public delegate R ReturnObject<out R>(); static void Main(string[] args) { ReturnObject<object> returnObject1 = ReturnObj; ReturnObject<string&...
0 votes
2 answers
144 views

C#: Why is Networkstream.Read() able to change the buffer variable without out/ref keyword

Why can NetworkStream.Read() write to the byte[]? byte[] data = new byte[16]; NetworkStream ns = new NetworkStream(socket); ns.Read(data, 0, data.Length); //data != new byte[16] I thought you need ...
4 votes
5 answers
784 views

out parameters in object initializer during anonymous instantiation

If I have an object containing a public int property (public accessors), how can I parse a string to int when initializing this property at instantiation ? // Given initialized DataTable table; // ...
2 votes
3 answers
2k views

How do I stop mouse_out firing when mouse click fires

I have buttons that have mouse_over, mouse_out and CLICK events. But when I click the button it takes me to another frame and the mouse_out event tried to fire. How do I stop that happening? act1_btn....
0 votes
1 answer
10k views

Verilog "In, out, or inout does not appear in port list"

I can't understand what this error means. I want to make a simple calculator with memory, however this error jumped out and I cant get what the ** Error: C:\Users\Kainy\Desktop\LOGIC\calculator\...
1 vote
2 answers
2k views

Scale out azure continuous webjob

I am trying to scale out a continuous webjob. My service plan is set on standard so i am able to scale out 10 instances. The problem is that the webjob does not scale out and at any time, only one is ...
0 votes
1 answer
210 views

OSB server out of memory

I have 2 cluster environment for Oracle OSB 12c. It works upto the mark with low load. However when i increase the load, it starts failing and gives Out of Memory error. This error is observed in ...
3 votes
1 answer
8k views

Pentaho: block this step until steps finish

I'm trying to use "block this step until steps finish" for a transformation but it seems to not work: On the way it appears on the picture, it is assumed that "total EPOs. DAT, VSE, ESP" shoudn't be ...
0 votes
1 answer
1k views

out keyword: C# to python translation [duplicate]

I am a beginner python programmer, and trying to understand a c# script. I came across the out keyword, I have read several other threads, but I think i have not been able to understand it completely. ...
0 votes
4 answers
218 views

How to have a function return both index and value of an array?

This function counts how often letter occur in a given string and puts that in an array (index is ascii-number of letter and value ist counted occurrences). Now I need to return both the letter (which ...
0 votes
1 answer
953 views

Keras predict(..) output interpretation

I currently use a keras model for text classification. Calling the evaluate method I often have accuracies around 90 percent. However, calling the predict function and printing the output does not ...
0 votes
2 answers
132 views

out-file -filepath $target -append work in ISE but fails otherwise

I have created a script to build a SQL query file from a CSV file. When I run it in ISE it works fine and builds the files exactly as I would expect. But If I try to launch the script from either ...
1 vote
1 answer
403 views

When Running PS1 from CMD Out-File cannot access file

When I run the following script in the Powershell ISE or regular powershell window the script runs fine and builds my .SQL query file based on my CSV (Tab Seperated) file. However If I run the same ...
1 vote
0 answers
205 views

out of memory formatting.php line 4651

I got Wordpress with Elementor Pro and for some reason always get 500 Server Errors when trying to save the page. It is not a large page, however these errors constantly occour. And i am getting ...
0 votes
1 answer
167 views

Unclear about compiler error when using "out" in async-await block in C#

I have a method I'm calling and I want to make sure it absolutely finishes before continuing. I'm also interested in knowing if it completed successfully or not, so I'm doing the following: async ...
-1 votes
1 answer
1k views

Implement calling delegate with out parameters

I try to implement a decorator pattern for handling error in database transactions. I have no problem with standard Func and Actions, but i have difficulties with functions having out parameter. Here ...
0 votes
2 answers
609 views

LINQ: transform enumerable until end condition is met, and return if the end condition was met

I have a string enumerable strArr. I want to convert all entries into int as long as that is possible, and when an entry is not convertible to int, enumeration should stop. I also want to return a ...
1 vote
0 answers
331 views

determine function out type based on input Enum c#

I have 3rd party DLL which have an enum with 70 values and a function that based on that get that enum and set the return value but my problem that the this functions 19 overloads on the out value ...
0 votes
0 answers
199 views

Implementing out and ref parameters in powershell

I have the C# class class ConfigurationPropertyBag : IPropertyBag { internal HybridDictionary properties; internal ConfigurationPropertyBag() { properties = new HybridDictionary()...
127 votes
8 answers
51k views

How to explicitly discard an out argument?

I'm making a call: myResult = MakeMyCall(inputParams, out messages); but I don't actually care about the messages. If it was an input parameter I didn't care about I'd just pass in a null. If it ...
2 votes
1 answer
276 views

Access action's out parameter

Assuming that for whatever weird reason (interop infact) I have this method void DoSomething(out MyStruct myStruct) { // Setting the struct members here. } that I want to pass to another method ...
40 votes
5 answers
10k views

Out parameters and exceptions

Say I have the following code: static void Fjuk(out string str) { str = "fjuk!"; throw new Exception(); } static void Main(string[] args) { string s = ...
2 votes
2 answers
3k views

c#: Dictionary TryGetValue creating instance instead of getting reference

I'm a total noob with c#, and cannot figure out why the same method works in different ways. I'm making a simple spreadsheet application, and am using a Dictionary of cells, where the key is a string ...
6 votes
2 answers
6k views

out var _ and out _ difference? [duplicate]

In C# 7 we can do like this: byte.TryParse(p.Value, out _) or like this byte.TryParse(p.Value, out var _) Are there any differences?
0 votes
2 answers
1k views

Iphone - Twitter log out using MGTwitterEngine [duplicate]

I'm working on twitter integration on an iPhone application using MGTwitterEngine. How to log out the current user?
-3 votes
4 answers
147 views

why both out & ref?

out variable references can be initialised with the address of an unassigned variable but ref variables can't do that, making out better than ref. Then what is the need for ref?

1 2 3
4
5
13