Click here to Skip to main content
15,918,404 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Feature of STL map Pin
rsasi26-May-04 17:07
sussrsasi26-May-04 17:07 
GeneralRe: Feature of STL map Pin
valikac27-May-04 5:09
valikac27-May-04 5:09 
GeneralRe: Feature of STL map Pin
Paul Ranson27-May-04 12:48
Paul Ranson27-May-04 12:48 
GeneralListView 2000 - XP CPU Usage Pin
Dan Hill26-May-04 6:11
Dan Hill26-May-04 6:11 
GeneralRe: ListView 2000 - XP CPU Usage Pin
Dan Hill26-May-04 6:12
Dan Hill26-May-04 6:12 
Generalerror C2872: 'ATL' : ambiguous symbol in conversion from wtl7.0 to 7.1 Pin
bryces25-May-04 1:20
bryces25-May-04 1:20 
QuestionWhen ShowUI Function is called? Pin
Abhi Lahare24-May-04 19:25
Abhi Lahare24-May-04 19:25 
Generalstd::list problem using dll Pin
Wim Jans24-May-04 7:22
Wim Jans24-May-04 7:22 
Hello,

In my application I call a dll, which contains an exported class.
The class has a member function, which passes a std::list by reference.
When using the push_back member of the list, the application just freezes after a few iterations:

In my main app:

<br />
std::list< std::basic_string<TCHAR> > m_Columns;<br />
int bReturn=pMyDllClass->doit(m_Columns);<br />


In my dll

<br />
int CMyDllClass::doit(std::list< std::basic_string<TCHAR> >& out)<br />
{<br />
  ...<br />
  for (int n=0; n<20; n++)<br />
  {<br />
    out.push_back(std::basic_string<TCHAR>("test");<br />
  }<br />
  ...<br />
  return 0; // <== never reached<br />
}<br />


After iteration 11 or so, the app freezes.

I I use this piece of code in my main app, so not using the dll but using a normal class, it works perfectly.

Any idea what I'm doing wrong

Thanks

Regards

Wim
GeneralRe: std::list problem using dll Pin
Nemanja Trifunovic24-May-04 7:40
Nemanja Trifunovic24-May-04 7:40 
GeneralRe: std::list problem using dll Pin
Wim Jans24-May-04 8:11
Wim Jans24-May-04 8:11 
GeneralRe: std::list problem using dll Pin
Nemanja Trifunovic24-May-04 14:27
Nemanja Trifunovic24-May-04 14:27 
GeneralRe: std::list problem using dll Pin
Michael Dunn24-May-04 11:07
sitebuilderMichael Dunn24-May-04 11:07 
Generallinking a .LIB file with a .DLL Pin
Member 107203224-May-04 3:17
Member 107203224-May-04 3:17 
GeneralRe: linking a .LIB file with a .DLL Pin
Jörgen Sigvardsson24-May-04 7:49
Jörgen Sigvardsson24-May-04 7:49 
GeneralRe: linking a .LIB file with a .DLL Pin
Member 107203224-May-04 21:10
Member 107203224-May-04 21:10 
GeneralRe: linking a .LIB file with a .DLL Pin
Member 107203226-May-04 22:30
Member 107203226-May-04 22:30 
Generallistbox in C# Pin
HowRU21-May-04 20:35
HowRU21-May-04 20:35 
GeneralRe: listbox in C# Pin
Michael Dunn21-May-04 20:50
sitebuilderMichael Dunn21-May-04 20:50 
GeneralControls not visible Pin
Skandal21-May-04 8:59
Skandal21-May-04 8:59 
GeneralSTL - map problem Pin
ra_sasi20-May-04 12:21
ra_sasi20-May-04 12:21 
GeneralRe: STL - map problem Pin
Jörgen Sigvardsson20-May-04 12:35
Jörgen Sigvardsson20-May-04 12:35 
GeneralRe: STL - map problem Pin
ra_sasi21-May-04 4:31
ra_sasi21-May-04 4:31 
GeneralRe: STL - map problem Pin
Paul Ranson21-May-04 7:02
Paul Ranson21-May-04 7:02 
GeneralRe: STL - map problem Pin
ra_sasi21-May-04 7:11
ra_sasi21-May-04 7:11 
GeneralRe: STL - map problem Pin
Paul Ranson21-May-04 7:50
Paul Ranson21-May-04 7:50 

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.