Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFinding CRLF or other Characters in char Pin
shibble29-Aug-04 4:32
shibble29-Aug-04 4:32 
GeneralRe: Finding CRLF or other Characters in char Pin
Member 30761229-Aug-04 7:09
Member 30761229-Aug-04 7:09 
GeneralRe: Finding CRLF or other Characters in char Pin
shibble29-Aug-04 7:19
shibble29-Aug-04 7:19 
GeneralIndentation+word wrapping in Edit windows Pin
DaFrawg29-Aug-04 2:26
DaFrawg29-Aug-04 2:26 
GeneralRe: Indentation+word wrapping in Edit windows Pin
Ryan Binns29-Aug-04 19:34
Ryan Binns29-Aug-04 19:34 
QuestionDetect available ODBC data sources? Pin
Roland E.29-Aug-04 0:09
Roland E.29-Aug-04 0:09 
AnswerRe: Detect available ODBC data sources? Pin
JimmyRopes29-Aug-04 5:04
professionalJimmyRopes29-Aug-04 5:04 
Question"Small" bug in CSimpleArray ??? Pin
Ernesto D.28-Aug-04 22:47
Ernesto D.28-Aug-04 22:47 
Hi all, ibe been trying to find a memory leak for the last 5 hours, and then i discovered what i think is a "small bug" in CSimpleArray<> collection helper, here´s an example:

class acls
{
public:
CString m_str;
// constructor, copy constructor, etc. here
};

// in some function...

// create some objects to add...
acls mycls;
mycls.m_str="ABC";
acls another;
another.m_str="CDE";

// and create the array & add the objects
CSimpleArray<acls> arr;
arr.Add(mycls);
arr.Add(another);
arr.RemoveAt(1);

this results in a memory leak pointing to the 2nd object added to the array, the interesting part is, that if you remove the very first item instead (RemoveAt(0)) there is no leak.
Can NE1 suggest a way arround this that does not involve NOT using CSimpleArray? my project is allmost finished, and rewritting everything not to use these arrays would take me forever.
thanks!

AnswerRe: &quot;Small&quot; bug in CSimpleArray ??? Pin
Neville Franks28-Aug-04 23:54
Neville Franks28-Aug-04 23:54 
GeneralRe: &quot;Small&quot; bug in CSimpleArray ??? Pin
Ernesto D.29-Aug-04 9:47
Ernesto D.29-Aug-04 9:47 
GeneralRe: &quot;Small&quot; bug in CSimpleArray ??? Pin
Neville Franks29-Aug-04 10:56
Neville Franks29-Aug-04 10:56 
GeneralRe: &quot;Small&quot; bug in CSimpleArray ??? Pin
Ernesto D.30-Aug-04 22:02
Ernesto D.30-Aug-04 22:02 
AnswerReal world example (try it if you wish) Pin
Ernesto D.29-Aug-04 9:38
Ernesto D.29-Aug-04 9:38 
GeneralRe: Real world example (try it if you wish) Pin
Neville Franks31-Aug-04 10:09
Neville Franks31-Aug-04 10:09 
GeneralRe: Real world example (try it if you wish) Pin
Ernesto D.1-Sep-04 13:19
Ernesto D.1-Sep-04 13:19 
GeneralISAPI Filter wont load when i add OnSendRawData notification Pin
raed28-Aug-04 22:26
raed28-Aug-04 22:26 
Generalgenadi Pin
genadi28-Aug-04 21:21
genadi28-Aug-04 21:21 
Generalgenadi Pin
genadi28-Aug-04 21:17
genadi28-Aug-04 21:17 
GeneralHowto detect keyboard language change Pin
Ivan Cachicatari28-Aug-04 19:12
Ivan Cachicatari28-Aug-04 19:12 
GeneralRe: Howto detect keyboard language change Pin
Michael Dunn28-Aug-04 20:02
sitebuilderMichael Dunn28-Aug-04 20:02 
GeneralRe: Howto detect keyboard language change Pin
Ivan Cachicatari28-Aug-04 20:32
Ivan Cachicatari28-Aug-04 20:32 
GeneralRe: Howto detect keyboard language change Pin
Michael Dunn28-Aug-04 21:44
sitebuilderMichael Dunn28-Aug-04 21:44 
GeneralRe: Howto detect keyboard language change Pin
Ivan Cachicatari29-Aug-04 10:45
Ivan Cachicatari29-Aug-04 10:45 
Generaldifferent objects share global parameters Pin
impeham28-Aug-04 14:12
impeham28-Aug-04 14:12 
GeneralAllowing a Template Function to access a private variables in a class. Pin
Supaflyfrank28-Aug-04 12:49
Supaflyfrank28-Aug-04 12: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.