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
3
votes
1 answer

Data Masking policy error on shared database

I am trying to apply data masking policy on shared database where we have access to only views.However I provided grant to databases also.I am not able to apply this masking policy here is my code create or replace masking policy Policy_name as…
3
votes
1 answer

Fix broken links on shared library g++

I have an executable which links to opencv 2.2. However, I have removed opencv 2.2 and I have opencv 2.3 installed. The question is, is there a way to link this executable to the new shared library without recompiling the whole source code? How can…
Sam Felix
  • 1,329
  • 1
  • 10
  • 23
3
votes
1 answer

Shared Element Transition in Javascript Web

Consider this UI animation mockup. There's a Master Detail page in here. When the user clicks/taps on a given card on master page, it must take the user to the product detail page /products ---> /products/:productId It goes for all frontend…
Param Singh
  • 1,325
  • 3
  • 13
  • 28
3
votes
6 answers

A shared online code viewing tool with syntax highlighting?

I work with another developer on projects and sometimes we are chatting about them via IM. We can dropbox stuff back and forth, but it would be nice to have like an interactive version of pastie / google docs where we could see the same code and…
cwd
  • 53,018
  • 53
  • 161
  • 198
3
votes
1 answer

Lookup failure when linking using -rpath and $ORIGIN

I'm trying to learn how to use the -rpath option in GCC's linker (ld) with $ORIGIN. I'm trying the simplest example I can think of (see below), and all the links I read seem to say I'm doing it correctly. However, when I run the executable it can't…
Simon
  • 623
  • 1
  • 8
  • 13
3
votes
1 answer

MVC-3 ASP.NET Shared Views-Redirect-Razor

I have a shared view called NotAuthorised in the folder 'Views/Shared'. I want to redirect the users to this view when they are not authorised to see the page. Initially, this view was in a folder called Account. But I moved it into the Shared…
Hari Gillala
  • 11,736
  • 18
  • 70
  • 117
3
votes
2 answers

ApplicationPoolIdentity user cannot modify files in shared folder in Windows Server 2008

I am creating directories, and writing files to a shared folder within my web application that is being hosted on Windows Server 2008. I am running the application pool with an identity of ApplicationPoolIdentity. To give you an idea of my setup…
JustBeingHelpful
  • 18,332
  • 38
  • 160
  • 245
3
votes
2 answers

OpenMP shared data

I'm somewhat new to OpenMP but have experience with parallel processing in general. I worked with boost::threads before and now I'm testing around with openmp. The problem is that I don't know how to handle shared data access because I don't really…
hobbytroll
  • 31
  • 1
  • 2
3
votes
3 answers

After install COM AddIn, test connect in Excel, got bluescreen

COM Excel AddIn, C#, VS 2008, Excel COM Addin, tested on test VM, works fine Customer installed and got blue screen, have no clue why. Following is what customer got. Can someone help? I have no idea what's this, what causes this. not sure if…
susu
  • 31
  • 1
3
votes
1 answer

How to work with a shared Tomcat?

Sorry, but I tried searching for this subject, but I didn't find related to my problem. Recently, I bought a domain and web hosting for it. I bought it especially for using it for my Java projects. I have Tomcat available as server on the…
Andrei Sfat
  • 8,440
  • 5
  • 49
  • 69
3
votes
2 answers

Sending a matrix's orientation... Converting to degrees? Radians? Something without a decimal?

I want to be able to tell the server my model's orientation so it can in turn send it back to all other players. However getting values through shared memory(which at worst take byte values, at best integer). Is there a mathematical way I can check…
Remm
  • 677
  • 8
  • 24
3
votes
2 answers

What are the Pitfalls of using a shared static WCF Proxy Client?

I am considering using a Shared (read static) WCF proxy client for a high throughput application. I believe there is a performance gain in doing this, but I have not benchmarked this as yet. Are there some serious pitfalls to this idea? From my…
Andrew Harry
  • 13,773
  • 18
  • 67
  • 102
3
votes
1 answer

Embedding publisher policy into assembly

I'm developing a shared assembly, version 2.0.0.0. For future compatibility, I'd like to bind all the 2.0.x.x versions to the latest version installed. To do so I need a publisher policy file. Is there a way to embed the publisher policy directly…
QbProg
  • 1,675
  • 1
  • 14
  • 18
3
votes
1 answer

How to use CMake to update library path?

I am writing a shared library for GNU/Linux, which will install for now with "sudo make install". I have CMake recipes to create the files and install them in '/usr/local/lib/app', and the libraries and links are created correctly. But the library…
Bret
  • 136
  • 2
  • 5
3
votes
2 answers

Docker cannot apply checked shared drives

Expected behavior I went to Settings->Shared Drives and set checkbox on my F: drive. After i pressed apply and input my user and password, i want to see then checkbox with drive F: is checked. Docker Version enter image description here Actual…
Andy FUN
  • 31
  • 2