Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionChange Image size Pin
john56322-Feb-11 20:32
john56322-Feb-11 20:32 
AnswerRe: Change Image size Pin
Madhu Nair2-Feb-11 21:17
Madhu Nair2-Feb-11 21:17 
AnswerRe: Change Image size Pin
S p k 5213-Feb-11 1:00
S p k 5213-Feb-11 1:00 
AnswerRe: Change Image size Pin
Cool_Dev3-Feb-11 2:01
Cool_Dev3-Feb-11 2:01 
QuestionError in Release() throw function Pin
Anu_Bala2-Feb-11 19:30
Anu_Bala2-Feb-11 19:30 
AnswerRe: Error in Release() throw function Pin
Andrew Brock2-Feb-11 19:43
Andrew Brock2-Feb-11 19:43 
GeneralRe: Error in Release() throw function Pin
Anu_Bala2-Feb-11 20:05
Anu_Bala2-Feb-11 20:05 
GeneralRe: Error in Release() throw function Pin
Andrew Brock2-Feb-11 20:35
Andrew Brock2-Feb-11 20:35 
GeneralRe: Error in Release() throw function Pin
Richard MacCutchan2-Feb-11 21:54
mveRichard MacCutchan2-Feb-11 21:54 
QuestionGetting the error Link2001: unresolved reference to the function Pin
charanmanjunath2-Feb-11 18:14
charanmanjunath2-Feb-11 18:14 
AnswerRe: Getting the error Link2001: unresolved reference to the function Pin
_AnsHUMAN_ 2-Feb-11 18:20
_AnsHUMAN_ 2-Feb-11 18:20 
GeneralRe: Getting the error Link2001: unresolved reference to the function Pin
charanmanjunath2-Feb-11 18:25
charanmanjunath2-Feb-11 18:25 
AnswerRe: Getting the error Link2001: unresolved reference to the function Pin
Andrew Brock2-Feb-11 18:25
Andrew Brock2-Feb-11 18:25 
AnswerRe: Getting the error Link2001: unresolved reference to the function Pin
ShilpiP2-Feb-11 18:37
ShilpiP2-Feb-11 18:37 
GeneralRe: Getting the error Link2001: unresolved reference to the function Pin
charanmanjunath2-Feb-11 19:19
charanmanjunath2-Feb-11 19:19 
GeneralRe: Getting the error Link2001: unresolved reference to the function Pin
charanmanjunath2-Feb-11 19:30
charanmanjunath2-Feb-11 19:30 
GeneralRe: Getting the error Link2001: unresolved reference to the function Pin
_AnsHUMAN_ 2-Feb-11 20:35
_AnsHUMAN_ 2-Feb-11 20:35 
GeneralRe: Getting the error Link2001: unresolved reference to the function Pin
charanmanjunath3-Feb-11 4:19
charanmanjunath3-Feb-11 4:19 
GeneralRe: Getting the error Link2001: unresolved reference to the function Pin
charanmanjunath3-Feb-11 7:05
charanmanjunath3-Feb-11 7:05 
GeneralRe: Getting the error Link2001: unresolved reference to the function Pin
Stefan_Lang3-Feb-11 21:29
Stefan_Lang3-Feb-11 21:29 
GeneralRe: Getting the error Link2001: unresolved reference to the function Pin
charanmanjunath3-Feb-11 22:36
charanmanjunath3-Feb-11 22:36 
GeneralRe: Getting the error Link2001: unresolved reference to the function Pin
charanmanjunath8-Feb-11 3:10
charanmanjunath8-Feb-11 3:10 
QuestionMemory deallocation Pin
csrss2-Feb-11 4:16
csrss2-Feb-11 4:16 
AnswerRe: Memory deallocation Pin
Stephen Hewitt2-Feb-11 4:26
Stephen Hewitt2-Feb-11 4:26 
AnswerRe: Memory deallocation Pin
Andrew Brock2-Feb-11 4:32
Andrew Brock2-Feb-11 4:32 
C# will only free memory allocated by the .net environment. This means that you must free any data that your DLL allocates to avoid memory leaks.

If the data is allocated within the DLL, then it should be freed from the DLL, this is not only good style, but necessary in most cases as the DLL will have a different heap which it allocates from.
You should make a member function of the class to free the memory if possible, however there are many situations where this is not possible when dealing with multiple languages, you can simply export a standard function which calls free or HeapFree from within the DLL.

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.