Click here to Skip to main content
15,907,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: back ground color of groupbox caption Pin
ThatsAlok24-Sep-08 19:53
ThatsAlok24-Sep-08 19:53 
Question"This may be due to a corruption of the heap" Question. [modified] Pin
monsieur_jj24-Sep-08 15:34
monsieur_jj24-Sep-08 15:34 
QuestionAnyone used the CShareLockNH Methods documented in MSDN Pin
Blake Miller24-Sep-08 12:32
Blake Miller24-Sep-08 12:32 
AnswerRe: Anyone used the CShareLockNH Methods documented in MSDN Pin
Mark Salsbery24-Sep-08 13:23
Mark Salsbery24-Sep-08 13:23 
GeneralRe: Anyone used the CShareLockNH Methods documented in MSDN Pin
Blake Miller25-Sep-08 7:47
Blake Miller25-Sep-08 7:47 
QuestionC++ heap allocation question Pin
KellyR24-Sep-08 10:57
KellyR24-Sep-08 10:57 
AnswerRe: C++ heap allocation question Pin
Mark Salsbery24-Sep-08 11:12
Mark Salsbery24-Sep-08 11:12 
AnswerRe: C++ heap allocation question Pin
Joe Woodbury24-Sep-08 11:51
professionalJoe Woodbury24-Sep-08 11:51 
GeneralRe: C++ heap allocation question Pin
Mark Salsbery24-Sep-08 11:56
Mark Salsbery24-Sep-08 11:56 
GeneralRe: C++ heap allocation question Pin
Joe Woodbury24-Sep-08 11:58
professionalJoe Woodbury24-Sep-08 11:58 
QuestionLibtorrent Pin
Pwnagedo24-Sep-08 10:29
Pwnagedo24-Sep-08 10:29 
QuestionThreads and Memory Allocation Pin
Ylno24-Sep-08 8:10
Ylno24-Sep-08 8:10 
GeneralRe: Threads and Memory Allocation Pin
Perspx24-Sep-08 8:32
Perspx24-Sep-08 8:32 
AnswerRe: Threads and Memory Allocation Pin
Mark Salsbery24-Sep-08 9:37
Mark Salsbery24-Sep-08 9:37 
GeneralRe: Threads and Memory Allocation Pin
Ylno24-Sep-08 10:30
Ylno24-Sep-08 10:30 
GeneralRe: Threads and Memory Allocation Pin
Mark Salsbery24-Sep-08 10:49
Mark Salsbery24-Sep-08 10:49 
GeneralRe: Threads and Memory Allocation Pin
Ylno24-Sep-08 11:23
Ylno24-Sep-08 11:23 
AnswerRe: Threads and Memory Allocation Pin
Ylno24-Sep-08 11:48
Ylno24-Sep-08 11:48 
GeneralRe: Threads and Memory Allocation Pin
Mark Salsbery24-Sep-08 11:58
Mark Salsbery24-Sep-08 11:58 
GeneralRe: Threads and Memory Allocation Pin
Ylno24-Sep-08 12:22
Ylno24-Sep-08 12:22 
GeneralRe: Threads and Memory Allocation Pin
Mark Salsbery24-Sep-08 13:17
Mark Salsbery24-Sep-08 13:17 
Assuming the DLL and the scripting language need no further interaction
after the call...
DLLFunctionCalledByScriptingLanguage
{
   createthread(ThreadProc)
   return
}

ThreadProc
{
   allocate some memory
   do some stuff
   free memory
   return
}

That's the same as yours except the memory operations are all
in the thread procedure and the function doesn't wait for the thread
to end before returning control to the caller, thus making it truly
multithreaded. Make sense?

How often and how many times would this be called by the scripting language?

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionMatrix to transform a vector MA to MB Pin
ybenaabud24-Sep-08 8:09
ybenaabud24-Sep-08 8:09 
AnswerRe: Matrix to transform a vector MA to MB Pin
CPallini24-Sep-08 8:34
mveCPallini24-Sep-08 8:34 
GeneralRe: Matrix to transform a vector MA to MB Pin
ybenaabud24-Sep-08 13:41
ybenaabud24-Sep-08 13:41 
GeneralRe: Matrix to transform a vector MA to MB Pin
ybenaabud24-Sep-08 13:46
ybenaabud24-Sep-08 13:46 

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.