Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
GeneralRe: Very strange exception when accessing the configuration system with .NET 4.6.1 Pin
mav.northwind4-Apr-16 7:36
mav.northwind4-Apr-16 7:36 
Questioncharacter division from the cursive data on image Pin
DNLMurthy3-Apr-16 18:31
professionalDNLMurthy3-Apr-16 18:31 
AnswerRe: character division from the cursive data on image Pin
Richard MacCutchan3-Apr-16 21:45
mveRichard MacCutchan3-Apr-16 21:45 
AnswerRe: character division from the cursive data on image Pin
Bernhard Hiller4-Apr-16 0:33
Bernhard Hiller4-Apr-16 0:33 
QuestionContour Analysis for Image Recognition in C# Pin
DNLMurthy3-Apr-16 10:04
professionalDNLMurthy3-Apr-16 10:04 
AnswerRe: Contour Analysis for Image Recognition in C# Pin
Dave Kreskowiak3-Apr-16 12:13
mveDave Kreskowiak3-Apr-16 12:13 
QuestionReading DVD multi session structure(s) Pin
kiskeya2-Apr-16 8:36
kiskeya2-Apr-16 8:36 
QuestionCan share different invocations of an application the same static data Pin
Wolfgang Kurz2-Apr-16 8:00
professionalWolfgang Kurz2-Apr-16 8:00 
Hello,

take the following scenario:

We have a Windows Forms application called "CallMultiple" which accepts e.g. one string parameter in the Main method.

Now - via a command input - this application is tiggered the first time. It gets the input string "first", and sets a static variable "invocation count" to zero as well as the parameter "first" into a static variable called "invocation type". Both static variables should be public.

With parameter "first" a GUI Window is presented.
The process only ends if somebody clicks the "Terminate" button in displayed GUI Window.

Now there happens a second invocation with parameter value "second".
(The case, that the value "first" is coming again shall not be handled for this question).

Question: is it possible to compare the parameter of this invocation ("second") to the parameter already stored in the first invocation "invocation type" = "first" ?
and if it is not "first" will do something different, e.g bump the static counter "invocation count" and then ends (that is: dispose the process).

Can the waiting process (first invocation) get the counter and display e.g. a message like "application called x times" before it will end (triggered by the "terminate" button in the GUI Windows)

That means: can two processes of the same assembly share data via public static variables ?

Can somebody answer this question.
Many thanks in advance

Wolfgang
AnswerRe: Can share different invocations of an application the same static data Pin
Richard Andrew x642-Apr-16 9:40
professionalRichard Andrew x642-Apr-16 9:40 
AnswerRe: Can share different invocations of an application the same static data Pin
Brisingr Aerowing2-Apr-16 14:27
professionalBrisingr Aerowing2-Apr-16 14:27 
GeneralRe: Can share different invocations of an application the same static data Pin
Wolfgang Kurz2-Apr-16 21:13
professionalWolfgang Kurz2-Apr-16 21:13 
AnswerRe: Can share different invocations of an application the same static data Pin
Bernhard Hiller4-Apr-16 0:37
Bernhard Hiller4-Apr-16 0:37 
Questionhelp me in this code Pin
Kulbeer sidhu2-Apr-16 2:18
Kulbeer sidhu2-Apr-16 2:18 
AnswerRe: help me in this code Pin
OriginalGriff2-Apr-16 2:31
mveOriginalGriff2-Apr-16 2:31 
GeneralRe: help me in this code Pin
Ratul Thakur2-Apr-16 4:15
Ratul Thakur2-Apr-16 4:15 
AnswerRe: help me in this code Pin
Ratul Thakur2-Apr-16 3:52
Ratul Thakur2-Apr-16 3:52 
GeneralRe: help me in this code Pin
Sascha Lefèvre2-Apr-16 4:50
professionalSascha Lefèvre2-Apr-16 4:50 
GeneralRe: help me in this code Pin
Ratul Thakur2-Apr-16 6:33
Ratul Thakur2-Apr-16 6:33 
GeneralRe: help me in this code Pin
F-ES Sitecore3-Apr-16 4:15
professionalF-ES Sitecore3-Apr-16 4:15 
GeneralRe: help me in this code Pin
Pete O'Hanlon3-Apr-16 4:51
mvePete O'Hanlon3-Apr-16 4:51 
GeneralRe: help me in this code Pin
F-ES Sitecore3-Apr-16 4:56
professionalF-ES Sitecore3-Apr-16 4:56 
GeneralRe: help me in this code Pin
Ratul Thakur3-Apr-16 7:46
Ratul Thakur3-Apr-16 7:46 
GeneralRe: help me in this code Pin
Sascha Lefèvre3-Apr-16 13:11
professionalSascha Lefèvre3-Apr-16 13:11 
GeneralRe: help me in this code Pin
F-ES Sitecore3-Apr-16 22:38
professionalF-ES Sitecore3-Apr-16 22:38 
JokeRe: help me in this code Pin
Pete O'Hanlon3-Apr-16 22:57
mvePete O'Hanlon3-Apr-16 22:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.