Questions tagged [shared]

In VB.NET, the Shared keyword is roughly equivalent to the static keyword used by many other languages.

In , the Shared keyword is roughly equivalent to the static keyword used by and many other languages.

For example, the following code snippet in VB.NET:

Public Class Foo
    Public Shared Bar As String
End Class

Is equivalent to the C#:

public class Foo
{
    public static string Bar;
}

Further Reading

OpenMP

In OpenMP, it corresponds to the status of a variable. In a parallel section, a SHARED variable will be shared by all the running threads, meaning they will all access this variable and could modify it simultaneously. It is the default status of every variable in a parallel section, apart from the iteration counters.

1404 questions
-1
votes
1 answer

Need business web hosting, with INSTANT activation and DECENT support

Trying to open a web hosting account, for a business project. Budget is up to $ 40-50 per month. Tried Codero - RIDICULOUS delays with server start, took Support 2.5 hours just to get the server up and running. I'm not talking website, I'm talking…
TomJones999
  • 775
  • 2
  • 13
  • 30
-1
votes
1 answer

Using VBscript to hold user types and constants to share between Word and Excel VBA?

I am using VBA to automate some tasks in and between some Word and Excel files (Office 2010). Right now I have the VBA code that is used only by Word stored in the Word file, and the VBA code that is used only by Excel stored in the Excel file, with…
-1
votes
2 answers

How can I convert Linux (PowerPC-based) Shared Library To X86 or X64 Linux?

I have an (xxx.so) shared library file and its based on powerpc linux. now i want to use it in our project but first we need to convert it to X86 or X64 shared library for pc linux. anyone can help me about this? Is it possible?
-1
votes
1 answer

How to share an object between threads

Recently I started working on a home monitoring system. I'm using and arduino to read the sensor data (like temperature) and send it to the raspberry pi over a serial port. On the raspberry pi I'm running a a java TCP server which reads the serial…
Tadej Gašparovič
  • 160
  • 1
  • 3
  • 12
-1
votes
1 answer

java multiple servlets thread safety of hashtable

in my application, i have one servlet which performs login and other operations. in this single servlet i store the users in an hastable keyed by the session id. Hashtable sessions; //sessionid and MySession instance But the login…
benchpresser
  • 2,171
  • 2
  • 23
  • 41
-1
votes
1 answer

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'. This is not supported on the shared server.How to solve this?

This is not supported on the shared hosting server, Any idea? Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
-1
votes
2 answers

linux program segment faults

Working on Ubuntu 10.04. I was testing one of the gSOAP examples (calcclient) as a statically linked executable. It worked ok. Later I splitted the modules so some of them went into a shared library (which I copied to /usr/local/lib). Then compiled…
marcelo
  • 215
  • 3
  • 13
-1
votes
2 answers

Objective C 'If else' statements

I have a code as follows: -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { NSString *article = self.textField_artcile.text; int article_int = [article intValue]; NSString *prim = self.textField_prim.text; int…
-1
votes
1 answer

Symfony2 on nginx shared hosting

i've a symfony 2.3.16 project which work great on localhost. But today i wanted to host it on my remote server : its a shared hosting on nginx 1.4.7 i've changed the public folder (from /web to /public_html : still working great on localhost) i've…
Chuck Norris
  • 1,125
  • 1
  • 12
  • 28
-1
votes
1 answer

Hostgater shared hosting cpu usage problems

I have shared webhosting and sometimes i go over the max allowed cpu usage once a day, sometimes two or three times. but i cant really narrow it down to anything specific. I have the following scripts installed: wordpress joomla owncloud dokuwiki…
-1
votes
1 answer

Approach to “Template” a Set of VB.Net Classes to Ensure a Set of Similar Shared Functions Are Implemented

I have a series of classes that have a number of analogous Shared methods that I want to ensure are implemented in a consistent manner in each class. These Shared methods are called via reflection in various areas of code, and up to this point I’ve…
JimMSDN
  • 484
  • 4
  • 16
-1
votes
1 answer

Android get value from SharedPreferences

I'm using SharedPreferences to store the choice between 2 checkboxes. It works but now I want that if the value is = 0 must be started my method, if it is equal to 1 is to be launched another method. I created a simple "if" but the method is not…
user2847219
  • 555
  • 1
  • 16
  • 27
-1
votes
2 answers

How to save String values in spinner with sharedpreference

How to save and load String values ​​in spinner with sharedpreference 1. can not store the value 2. can not load value array Greece United Kingdom Italy
-1
votes
1 answer

Posix shared mem with mmap between unrelated processes

I want to use Posix shared memory between two unrelated processes. The below code does the following .1) Created a shared memory segment with MAP_SHARED flag. Line 36 .2) based on command line arg aiType 1 or 2 - write some data into memory…
newbee8
  • 1
  • 2
-1
votes
1 answer

Shared Memory in C linux between server and Client

I want to share variables between client-server program. I have server and 2 Clients. I made shm with shmget but I cant reat variables in client Server: if ((nMemID=shmget(kluc, sizeof(udaje[2]), IPC_CREAT|0777))==-1) { perror("Nepodarilo sa…
Patrick
  • 21
  • 5