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

Managed C++/CLI

 
GeneralRe: Calling managed function from unmanaged function Pin
N a v a n e e t h10-Sep-09 16:10
N a v a n e e t h10-Sep-09 16:10 
GeneralRe: Calling managed function from unmanaged function Pin
santoshkaif10-Sep-09 18:43
santoshkaif10-Sep-09 18:43 
QuestionRe: Calling managed function from unmanaged function Pin
santoshkaif21-Sep-09 2:20
santoshkaif21-Sep-09 2:20 
AnswerRe: Calling managed function from unmanaged function Pin
N a v a n e e t h22-Sep-09 15:31
N a v a n e e t h22-Sep-09 15:31 
QuestionMultiple Forms in VS2005 Pin
rtshield6-Sep-09 15:17
rtshield6-Sep-09 15:17 
AnswerRe: Multiple Forms in VS2005 Pin
N a v a n e e t h6-Sep-09 15:58
N a v a n e e t h6-Sep-09 15:58 
QuestionWeird problem with writing to a label in a form. (VC++ 2008) Pin
alzaeem4-Sep-09 6:55
alzaeem4-Sep-09 6:55 
AnswerRe: Weird problem with writing to a label in a form. (VC++ 2008) Pin
N a v a n e e t h4-Sep-09 18:12
N a v a n e e t h4-Sep-09 18:12 
alzaeem wrote:
Also I know this method works because plotting works fine everytime as long as updateNoise is not called before drawPlot.


In the code you have given, updateNoise is not called before drawPlot.

alzaeem wrote:
well in the debugger the first line copies a value correctly, but the function returns when it executes the second line.


That is weird. Do you mean it returns when executing the line temp = global->_noise_value[1];? What is the type of _noise_value? Is that a managed array? Have you inspected the values in this array? Is updateNoise executed on the main thread?

A wild guess assuming your application is multi-threaded: _noise_value is available for all threads in execution and you are reading it without using any synchronization mechanisms. So there may be chances for data to be overwritten by the worker thread in between you read the values. Try to apply locking when reading and writing values to the _noise_value variable. Or avoid using global variables. Modify the methods to take changed values as arguments and when calling these methods, pass the changed values.

Smile | :)


GeneralRe: Weird problem with writing to a label in a form. (VC++ 2008) Pin
alzaeem5-Sep-09 17:32
alzaeem5-Sep-09 17:32 
AnswerRe: Weird problem with writing to a label in a form. (VC++ 2008) Pin
Luc Pattyn6-Sep-09 1:20
sitebuilderLuc Pattyn6-Sep-09 1:20 
Questionmodify a DLL(binary) to call another DLL function/exe or embed a code...I need some concepts clarification Pin
Member 43963092-Sep-09 21:58
Member 43963092-Sep-09 21:58 
AnswerRe: modify a DLL(binary) to call another DLL function/exe or embed a code...I need some concepts clarification Pin
Richard MacCutchan3-Sep-09 2:24
mveRichard MacCutchan3-Sep-09 2:24 
Questionthe error in managed c++ function call unmanaged c++ function Pin
jetjeankimo2-Sep-09 17:43
jetjeankimo2-Sep-09 17:43 
AnswerRe: the error in managed c++ function call unmanaged c++ function Pin
N a v a n e e t h3-Sep-09 0:00
N a v a n e e t h3-Sep-09 0:00 
GeneralRe: the error in managed c++ function call unmanaged c++ function Pin
jetjeankimo3-Sep-09 16:12
jetjeankimo3-Sep-09 16:12 
GeneralRe: the error in managed c++ function call unmanaged c++ function Pin
N a v a n e e t h4-Sep-09 5:59
N a v a n e e t h4-Sep-09 5:59 
GeneralRe: the error in managed c++ function call unmanaged c++ function Pin
jetjeankimo4-Sep-09 16:31
jetjeankimo4-Sep-09 16:31 
GeneralRe: the error in managed c++ function call unmanaged c++ function Pin
N a v a n e e t h4-Sep-09 17:51
N a v a n e e t h4-Sep-09 17:51 
GeneralRe: the error in managed c++ function call unmanaged c++ function Pin
jetjeankimo4-Sep-09 18:21
jetjeankimo4-Sep-09 18:21 
GeneralRe: the error in managed c++ function call unmanaged c++ function Pin
jetjeankimo5-Sep-09 21:33
jetjeankimo5-Sep-09 21:33 
QuestionSpy++ Pin
ant-damage2-Sep-09 2:19
ant-damage2-Sep-09 2:19 
AnswerRe: Spy++ Pin
Randor 2-Sep-09 10:20
professional Randor 2-Sep-09 10:20 
GeneralRe: Spy++ Pin
ant-damage3-Sep-09 4:22
ant-damage3-Sep-09 4:22 
GeneralRe: Spy++ Pin
EliottA3-Sep-09 5:13
EliottA3-Sep-09 5:13 
GeneralRe: Spy++ Pin
ant-damage3-Sep-09 5:32
ant-damage3-Sep-09 5:32 

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.