Click here to Skip to main content
15,888,579 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Reverse No program Pin
Richard MacCutchan7-Sep-14 21:23
mveRichard MacCutchan7-Sep-14 21:23 
QuestionSystem.AccessViolationException - Returning from cpp dll Pin
ToolMaker200716-Aug-14 4:25
ToolMaker200716-Aug-14 4:25 
AnswerRe: System.AccessViolationException - Returning from cpp dll Pin
Member 1048772028-Aug-14 21:45
Member 1048772028-Aug-14 21:45 
Questionneed help with creating a clr dll Pin
neodeaths13-Aug-14 21:57
neodeaths13-Aug-14 21:57 
AnswerRe: need help with creating a clr dll Pin
Richard MacCutchan13-Aug-14 22:26
mveRichard MacCutchan13-Aug-14 22:26 
QuestionHow to sound recorder c++ Pin
4manes6-Jul-14 22:58
4manes6-Jul-14 22:58 
AnswerRe: How to sound recorder c++ Pin
Richard MacCutchan7-Jul-14 2:46
mveRichard MacCutchan7-Jul-14 2:46 
QuestionDumb question about event arguments Pin
Member 1031630012-Jun-14 20:21
Member 1031630012-Jun-14 20:21 
Hoping somebody can help me with this. I looked for this issue coming up before, but I wasn't able to find anything. May be just my search skills...

Here's the question:

I have a class that generates events, using a custom event args class. That event args class contains a pointer to a large array. Something like this:

C++
public ref struct MyEventArgs : EventArgs {

  array<UInt16>^  imageData;
  ...
}


When this event gets activated, does the event args structure get cloned for each object instance that subscribes to the event, or is there a single instance of the event object with each event handler getting a managed pointer to the same object?

What I'm really getting to is whether the large array gets cloned for each event handler. I'm guessing no.

Many thanks in advance for any pointers (no pun intended...)
AnswerRe: Dumb question about event arguments Pin
John Schroedl13-Jun-14 8:05
professionalJohn Schroedl13-Jun-14 8:05 
GeneralRe: Dumb question about event arguments Pin
Member 1031630013-Jun-14 8:50
Member 1031630013-Jun-14 8:50 
Ranthow to work with window in c++ Pin
TomTomtz30-May-14 12:02
TomTomtz30-May-14 12:02 
GeneralRe: how to work with window in c++ Pin
Wes Aday30-May-14 12:29
professionalWes Aday30-May-14 12:29 
GeneralRe: how to work with window in c++ Pin
Richard MacCutchan30-May-14 22:08
mveRichard MacCutchan30-May-14 22:08 
GeneralRe: how to work with window in c++ Pin
WuRunZhe19-Jun-14 5:39
WuRunZhe19-Jun-14 5:39 
QuestionCount from 1 to 1000 without using loops Pin
Amrit Agr26-May-14 0:09
Amrit Agr26-May-14 0:09 
AnswerRe: Count from 1 to 1000 without using loops Pin
Richard MacCutchan26-May-14 0:42
mveRichard MacCutchan26-May-14 0:42 
GeneralRe: Count from 1 to 1000 without using loops Pin
Amrit Agr26-May-14 21:09
Amrit Agr26-May-14 21:09 
GeneralRe: Count from 1 to 1000 without using loops Pin
WuRunZhe19-Jun-14 5:44
WuRunZhe19-Jun-14 5:44 
GeneralRe: Count from 1 to 1000 without using loops Pin
Richard MacCutchan19-Jun-14 6:02
mveRichard MacCutchan19-Jun-14 6:02 
GeneralRe: Count from 1 to 1000 without using loops Pin
WuRunZhe19-Jun-14 15:01
WuRunZhe19-Jun-14 15:01 
QuestionBackground Image causes exception on startup but works in Forms Editor Pin
David W. Griffin20-May-14 8:36
David W. Griffin20-May-14 8:36 
Questioncompiling makefile Pin
MikcaCP19-May-14 11:11
MikcaCP19-May-14 11:11 
AnswerRe: compiling makefile Pin
Wes Aday19-May-14 13:28
professionalWes Aday19-May-14 13:28 
AnswerRe: compiling makefile Pin
Richard MacCutchan19-May-14 21:45
mveRichard MacCutchan19-May-14 21:45 
AnswerRe: compiling makefile Pin
Erik Westermann11-Jul-14 4:48
professionalErik Westermann11-Jul-14 4:48 

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.