Click here to Skip to main content
15,894,825 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Using microsoft STL and STLport in same project Pin
Stuart Dootson1-Jul-09 4:30
professionalStuart Dootson1-Jul-09 4:30 
GeneralRe: Using microsoft STL and STLport in same project Pin
Vishal Kumar Soni1-Jul-09 5:07
Vishal Kumar Soni1-Jul-09 5:07 
GeneralRe: Using microsoft STL and STLport in same project Pin
Stuart Dootson1-Jul-09 5:37
professionalStuart Dootson1-Jul-09 5:37 
GeneralRe: Using microsoft STL and STLport in same project Pin
Vishal Kumar Soni1-Jul-09 6:02
Vishal Kumar Soni1-Jul-09 6:02 
GeneralRe: Using microsoft STL and STLport in same project Pin
AVIJIT NANDI7-Feb-10 19:53
AVIJIT NANDI7-Feb-10 19:53 
QuestionRe: Using microsoft STL and STLport in same project Pin
AVIJIT NANDI7-Feb-10 20:04
AVIJIT NANDI7-Feb-10 20:04 
AnswerRe: Using microsoft STL and STLport in same project Pin
Vishal Kumar Soni9-Feb-10 17:46
Vishal Kumar Soni9-Feb-10 17:46 
GeneralRe: Using microsoft STL and STLport in same project Pin
AVIJIT NANDI9-Feb-10 18:45
AVIJIT NANDI9-Feb-10 18:45 
Actually my application uses STLPort libraries. So I am using the headers from STLPort 5.1 too. The 3rd party library (.lib) which I am trying to use in my application is using Visual studio STL. let me try to explain the problem.

This 3rd Party library has class OutputOptions which has a private member std::vector<string> _names. This class also has a public inline function addNames(string &name) {_names. pushback (name)}. In my application I have a OutputOptions object and I add names to this OutputOptions object using the inline function.[I can add the names, no issues in adding]. see the call stack at this point it uses stlp_std (stlport)

MYApp.exe!stlp_std::vector<3rdPartyLib::String,stlp_std::allocator<3rdPartyLib::String > >::push_back(const 3rdPartyLib::String & __x={...}) Line 368 C++
MYApp.exe!OutputOptions::addNames(const 3rdPartyLib::String & value={...})

But When the 3rd party library tries to access the _names vector using constant iterator the vector is corrupted and the application crashes. See the call stack when it tries to access the _names vector. it uses std::vector. I think that's the problem.

MYApp.exe!std::_Iterator_base::_Adopt(const std::_Container_base * _Parent=0x0190a3f4) Line 164 C++
MYApp.exe!std::_Vector_const_iterator<3rdPartyLib::String,std::allocator<3rdPartyLib::String> >::_Vector_const_iterator<3rdPartyLib::String,std::allocator<3rdPartyLib::String> >(3rdPartyLib::String * _Ptr=0x075c1bb8, const std::_Container_base * _Pvector=0x0190a3f4) Line 73 C++
MYApp.exe!std::vector<3rdPartyLib::String,std::allocator<3rdPartyLib::String> >::begin() Line 633 + 0x13 bytes C++

I don't know how to fix this.

-Avijit
GeneralRe: Using microsoft STL and STLport in same project Pin
sbansal714-Sep-11 14:38
sbansal714-Sep-11 14:38 
QuestionMy codecvt (a.k.a. facet) never gets called. Pin
John R. Shaw27-Jun-09 9:35
John R. Shaw27-Jun-09 9:35 
AnswerRe: My codecvt (a.k.a. facet) never gets called. Pin
Stuart Dootson28-Jun-09 23:37
professionalStuart Dootson28-Jun-09 23:37 
GeneralRe: My codecvt (a.k.a. facet) never gets called. Pin
John R. Shaw29-Jun-09 2:43
John R. Shaw29-Jun-09 2:43 
GeneralRe: My codecvt (a.k.a. facet) never gets called. Pin
Stuart Dootson29-Jun-09 3:16
professionalStuart Dootson29-Jun-09 3:16 
QuestionPossible to have a two-way Associative Arrays Pin
ComplexLifeForm25-Jun-09 2:30
ComplexLifeForm25-Jun-09 2:30 
AnswerRe: Possible to have a two-way Associative Arrays Pin
Andy Moore25-Jun-09 6:09
Andy Moore25-Jun-09 6:09 
GeneralRe: Possible to have a two-way Associative Arrays Pin
Stuart Dootson25-Jun-09 6:10
professionalStuart Dootson25-Jun-09 6:10 
AnswerRe: Possible to have a two-way Associative Arrays Pin
Stuart Dootson25-Jun-09 6:09
professionalStuart Dootson25-Jun-09 6:09 
GeneralRe: Possible to have a two-way Associative Arrays Pin
Kevin McFarlane4-Jul-09 6:01
Kevin McFarlane4-Jul-09 6:01 
GeneralRe: Possible to have a two-way Associative Arrays Pin
Stuart Dootson4-Jul-09 7:49
professionalStuart Dootson4-Jul-09 7:49 
AnswerRe: Possible to have a two-way Associative Arrays Pin
ComplexLifeForm25-Jun-09 7:01
ComplexLifeForm25-Jun-09 7:01 
QuestionHow to Implement RPC in windows XP Pin
suthakar5618-Jun-09 18:45
suthakar5618-Jun-09 18:45 
AnswerRe: How to Implement RPC in windows XP Pin
Stuart Dootson18-Jun-09 22:05
professionalStuart Dootson18-Jun-09 22:05 
AnswerRe: How to Implement RPC in windows XP Pin
led mike19-Jun-09 5:25
led mike19-Jun-09 5:25 
GeneralRe: How to Implement RPC in windows XP Pin
suthakar5619-Jun-09 5:38
suthakar5619-Jun-09 5:38 
GeneralRe: How to Implement RPC in windows XP Pin
led mike19-Jun-09 5:53
led mike19-Jun-09 5:53 

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.