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

How to determine JVM memory footprint with multiple processes on Linux

I'm trying to quantify the difference in memory footprint of a small java app performing the same process multithreaded vs multiprocess. All my tests are under Linux. When running multithreaded, it is relatively easy to determine the overall…
FunBob
4
votes
1 answer

Returning new base class when the parent class shared pointer is the return type

Can you have a parent class shared pointer return type of a function and then return a new child class without it being a shared pointer? I'm not sure how shared pointers work in these situations, do they act like a regular pointer? Here is my…
Ben Dol
  • 427
  • 6
  • 18
4
votes
3 answers

Shared collection locking in Java

I have a class which contains two Hashmaps with some data. I would like to update/reload data in the maps on a nightly basis (using Quartz job) and want to lock all other threads from reading during data refresh process. public class A { …
ovay
  • 43
  • 3
4
votes
1 answer

CakePHP: Shared Hosting Dilemma

I'm having trouble with uploading my cakePHP project on a shared hosting ( from hostgator ). Here is what I have done: I've organized my cake distribution like…
Progenitura
  • 43
  • 1
  • 6
4
votes
1 answer

Share button does not show the image from the shared link

I do configure the Like and Share button on a website but the image that appear when a link is shared is not the same image fromthe link, it is some random image fromthe site So another image is seen, but only when a user click on the link the…
Ângelo Rigo
  • 2,039
  • 9
  • 38
  • 69
3
votes
1 answer

New mail alert for shared mailbox outlook 2007

I am trying to create a popup mail alert for a shared mailbox in Outlook 2007. The following code doesn't work. why? private Microsoft.Office.Interop.Outlook._Explorers Explorers; private Microsoft.Office.Interop.Outlook.NameSpace…
Shnerka Zoid
  • 107
  • 1
  • 1
  • 6
3
votes
2 answers

Simple Library Questions (C++)

1. Are shared libraries and dynamic libraries the same exact thing? windows just labels them as .dll, and linux labels them as .so? 2. If a shared libarary has a ton of functions that a program uses, when are those functions loaded into memory? At…
Trevor Hickey
  • 36,288
  • 32
  • 162
  • 271
3
votes
2 answers

GCC Shared Library Problems

I'm trying to create a shared library on ubuntu using gcc I just have one simple class(shared.h and shared.cpp) and one client to use it (main.cpp) This is my makefile and I'm still not able to to get the program to compile. all: #compile…
Trevor Hickey
  • 36,288
  • 32
  • 162
  • 271
3
votes
2 answers

Shared hosting and page generation with PHP

I've got a website on a shared hosting and I'm using PHP to generate the pages. As of now, using the management system the admin can modify the database, which is stored in an XML file (SQL is not available). The pages that need to display the…
user989955
  • 41
  • 3
3
votes
1 answer

IIS7: How do I allow one site to bind to port 443 and prevent binding on other sites

We have a Win 2008 server running IIS7. The webserver runs several sites, one of which requires SSL for its e-commerce / data-capture components: www.domainA.com :80 & 443 www.domainB.com :80 www.domainC.com :80 www.domainD.com :80 I have…
3
votes
2 answers

How to prevent Capistrano generating symlinks in the `shared` directory on deployment?

By default, Capistrano's deploy task creates symlinks from the shared/log, shared/system and shared/pids directory into the release directory. How can I prevent this?
mjs
  • 63,493
  • 27
  • 91
  • 122
3
votes
2 answers

Open remote shared folder with credentials

I need to open a folder on a remote server with different credentials in a window (explorer.exe). I managed to do it with no credentials (my credentials), but when I do it with another username and another password than mine, it opens a prompt to…
Mitchel
  • 59
  • 2
  • 2
  • 13
3
votes
0 answers

facebook app development shared account

As a web development business we want to create facebook apps for our clients and retain access to them through some for of shared account. Facebook terms clearly state that you can't set up fake accounts. Is there any legal way that you can create…
Rumpleteaser
  • 4,142
  • 6
  • 39
  • 52
3
votes
1 answer

using gdb to debug a dynamically loaded shared library

I wrote a little unit test framework that uses python to dynamically loaded shared libraries and invoke test methods on them. I am able to invoke unit tests through my build scripts by executing: make test_library Make then spawns python with a…
samwise
  • 347
  • 1
  • 4
  • 15
3
votes
1 answer

Sharing Windows Authentication between SharePoint and ASP.Net Web Application

We have a SharePoint web application that uses Windows Authentication e.g. extranet.test.com. We also have an ASP.NET web application that uses Windows Authentication e.g. webapp.test.com However when navigating between the two applications, users…
Maxim Gershkovich
  • 45,951
  • 44
  • 147
  • 243