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
6
votes
4 answers

Generate PDF file from HTML page while on shared hosting

I have very limited access to enable extensions etc on my hosting but am looking to generate a PDF from an HTML page (with css/images) through PHP. Any ideas how I can achieve this with next to zero CL access etc? Preferable not a "hack" / relient…
Jeff Andersen
  • 332
  • 8
  • 14
6
votes
3 answers

how can i use a shared lib in glassfish to avoid deployment of the huge libs?

I have to upload about 30M for my app since it uses a lot of libraries, log, web engine and so on. I think there should be a way to share these libs on glassfish, but I failed to figure it out. I tried to put them in domain/lib/ext but does not…
Ben
  • 1,657
  • 4
  • 16
  • 21
6
votes
1 answer

Android - Shared Element Transition In Dialog

I wanted to know if there is any way to use shared elements between an activity/fragment and a dialog? I have a project which contains dialogs and I want to make a transition between an ImageView in Activity's view hierarchy to the relevant…
Sina Rezaei
  • 529
  • 3
  • 24
6
votes
3 answers

How Can I Mount A Network Folder Into An Android Internal Folder?

I want to mount a network shared folder (Ex: \10.0.0.240\Folder) into an Android internal folder (Ex: /mnt/sdcard/MountedFolder), just like the MountManager App does. My question it's: How can i do it, or how can i at least enter to the network…
Ivan Verges
  • 595
  • 3
  • 10
  • 25
6
votes
1 answer

Shared folders options for vmware in ESXi server

I am using ESXi server and run VMs using vSphere client. I was using shared folders options in VMware but I cannot find this option in these VMs now. How can I create a shared folder or how can I transfer files between VMware virtual machines…
snvngrc
  • 177
  • 2
  • 4
  • 12
6
votes
1 answer

Link a static lib into a shared lib?

Background: I want to link a few static libs into a shared lib. The reason is that I want my application to use the specific lib versions that I have tested it with. I do not want to ship the static versions as shared libraries with my application.…
mantler
  • 859
  • 1
  • 7
  • 22
6
votes
2 answers

Shared Library QT Resource

Im having again another problem. This time, I have a .dll, a shared library that contains a .qrc (QT Resource) file, the problem is, that when I'm trying to access one of the resources of the library, it doesn't work. I tried implementing…
Spamdark
  • 1,341
  • 2
  • 19
  • 38
6
votes
1 answer

NUMA-aware named shared memory for Linux

The Windows API offers the CreateFileMappingNuma function (http://msdn.microsoft.com/en-us/library/windows/desktop/aa366539(v=vs.85).aspx) to create a named shared memory space on a specific NUMA node. So far, I have not found an equivalent function…
Ben
  • 203
  • 1
  • 2
  • 8
6
votes
0 answers

g++ shared library not found same directory with -L

I just cant see what Im doing wrong here: Q. Why is my library not being found by g++ when compiling the program with a shared object? Im trying to include a shared library to my c++ program: g++ -fpic -c sha.cpp g++ -shared -o libsha.so sha.o g++…
user1453495
  • 61
  • 1
  • 2
5
votes
1 answer

Sharing project binaries across different team projects in TFS 2010

I am moving source code from a PureCM setup to a brand new TFS 2010 setup. I have got .net projects across multiple solutions, and these projects share binary outputs with each other. In pure CM world, these shared binaries were kept as "Shared…
5
votes
4 answers

How to create a shared object between different sessions in PHP?

How to create a shared object between different sessions in PHP? I'm thinking of using file or MySQL memory table. Using file isn't a good option because it doesn't have locking and is slow. Using MySQL memory table is a good option, but how to save…
jondinham
  • 8,271
  • 17
  • 80
  • 137
5
votes
3 answers

Best practice to share a struct from a C# program to a C++ win32 DLL?

What is the best practice to share memory of a struct from a C# program to a C++ win32 DLL? I've used structs in managed shared memory using Boost between two C++ programs and it worked great. I'm lost on the best way to accomplish this between…
EhevuTov
  • 20,205
  • 16
  • 66
  • 71
5
votes
1 answer

How to stick with a Gitlab CI Runner within a pipeline?

In our Gitlab project group, we are using multiple shared runners for CI. However, some of the jobs have dependencies, such that the previous job must have been executed on the same runner. Here is an Example: Job 1 builds a docker container Job 2…
maxgemilian
  • 133
  • 1
  • 8
5
votes
1 answer

Xcode 4 iOS project structuring questions

I have my first iOS application under my belt (a relatively straightforward iPad app, to be released in a month or so), but now I'm moving on to something more ambitious, and could use some advice. My next project will actually be two distinct but…
5
votes
3 answers

Flutter How can i save my date in Share preferences

I want to save my date thats picked from a DateTime-picker in a shared preferences so it will also be showen after restart the app child: InkWell( onTap: (){ DatePicker.showDateTimePicker(context, …
Teepause
  • 51
  • 1
  • 2