Click here to Skip to main content
15,906,094 members
Home / Discussions / C#
   

C#

 
GeneralDetect cause of application memory leak Pin
Andy Davey16-Oct-03 13:46
Andy Davey16-Oct-03 13:46 
GeneralRe: Detect cause of application memory leak Pin
James Simpson17-Oct-03 1:40
James Simpson17-Oct-03 1:40 
GeneralRe: Detect cause of application memory leak Pin
Julian Bucknall [MSFT]17-Oct-03 5:08
Julian Bucknall [MSFT]17-Oct-03 5:08 
GeneralRe: Detect cause of application memory leak Pin
MtnBiknGuy17-Oct-03 6:50
MtnBiknGuy17-Oct-03 6:50 
GeneralRe: Detect cause of application memory leak Pin
Daniel Turini17-Oct-03 6:52
Daniel Turini17-Oct-03 6:52 
GeneralRe: Detect cause of application memory leak Pin
leppie17-Oct-03 9:46
leppie17-Oct-03 9:46 
GeneralRe: Detect cause of application memory leak Pin
Andy Davey17-Oct-03 11:08
Andy Davey17-Oct-03 11:08 
GeneralRe: Detect cause of application memory leak Pin
leppie17-Oct-03 11:49
leppie17-Oct-03 11:49 
Thanx, this explains alot more Smile | :)

Andy Davey wrote:
Basically my windows service is used to handle a teletext signal reader (essentially receives text over TV broadcasting) via a C api compiled to a dll.

You seem to constantly marshalling string data to the C# service (as I understand it), are the data being freed afterwards? .Net wont do this for you. It will make yet another copy of it, but managed this time (no worries now).

Also the problem could be in the C code or the way the function being called is meant to implemeted, like said above whether the resulting char* should be freed or not. If you have the C code, you can easily "remedy" this by using a GC (i suggest libGC).

HTH Smile | :)

leppie::AllocCPArticle("Zee blog");
Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.

GeneralRe: Detect cause of application memory leak Pin
Andy Davey17-Oct-03 12:00
Andy Davey17-Oct-03 12:00 
GeneralRe: Detect cause of application memory leak Pin
leppie17-Oct-03 12:16
leppie17-Oct-03 12:16 
GeneralUpdating my main form (gui) from another class Pin
eggie516-Oct-03 13:34
eggie516-Oct-03 13:34 
GeneralRe: Updating my main form (gui) from another class Pin
Andy Davey16-Oct-03 14:12
Andy Davey16-Oct-03 14:12 
GeneralRe: Updating my main form (gui) from another class Pin
eggie516-Oct-03 14:27
eggie516-Oct-03 14:27 
GeneralRe: Updating my main form (gui) from another class Pin
eggie516-Oct-03 14:41
eggie516-Oct-03 14:41 
GeneralRe: Updating my main form (gui) from another class Pin
Guillermo Rivero16-Oct-03 15:27
Guillermo Rivero16-Oct-03 15:27 
GeneralRe: Updating my main form (gui) from another class Pin
eggie516-Oct-03 15:44
eggie516-Oct-03 15:44 
GeneralRe: Updating my main form (gui) from another class Pin
Guillermo Rivero16-Oct-03 15:48
Guillermo Rivero16-Oct-03 15:48 
Generalunessecary reply Pin
eggie516-Oct-03 15:52
eggie516-Oct-03 15:52 
GeneralRe: unessecary reply Pin
Guillermo Rivero17-Oct-03 3:40
Guillermo Rivero17-Oct-03 3:40 
GeneralRe: Updating my main form (gui) from another class Pin
eggie517-Oct-03 13:46
eggie517-Oct-03 13:46 
GeneralRe: Updating my main form (gui) from another class Pin
ThunorMagi16-Oct-03 18:15
sussThunorMagi16-Oct-03 18:15 
GeneralRe: Updating my main form (gui) from another class Pin
eggie517-Oct-03 1:53
eggie517-Oct-03 1:53 
GeneralRe: Updating my main form (gui) from another class Pin
Bo Hunter17-Oct-03 11:32
Bo Hunter17-Oct-03 11:32 
GeneralRe: Updating my main form (gui) from another class Pin
eggie517-Oct-03 11:35
eggie517-Oct-03 11:35 
GeneralRe: Updating my main form (gui) from another class Pin
eggie517-Oct-03 13:49
eggie517-Oct-03 13:49 

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.