Jump to content
Tuts 4 You
Sign in to follow this  
CodeExplorer

Poco lib in Visual Studio 2010 project

Recommended Posts

CodeExplorer

I have a project which includes barswf_cpu - in this one there is no POCO_STATIC; 
in Preprocessor Definitions
in two other subprojects barswf_brook and barswf_cuda there is POCO_STATIC; 
in Preprocessor Definitions:
in those subprojects when it tries to execute:
    g->log->information("------------------------------");
    g->log->information("BarsWF started");

it crushes when tries to allocate memory!
     msvcr100.dll!operator new(unsigned int size)  Line 63 + 0x1a bytes    C++
     barswf_brook.exe!std::allocator<char>::allocate(unsigned int _Count)  Line 187 + 0x12 bytes    C++
>    barswf_brook.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Copy(unsigned int _Newsize, unsigned int _Oldlen)  Line 1937 + 0x12 bytes    C++
     barswf_brook.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::assign(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & _Right, unsigned int _Roff, unsigned int _Count)  Line 902 + 0x23 bytes    C++
     barswf_brook.exe!Poco::Message::Message()  + 0x58 bytes    C++
     barswf_brook.exe!main(int argc, char * * argv)  Line 584 + 0x18 bytes    C++
     msvcr100.dll!_initterm(void (void)* * pfbegin, void (void)* * pfend)  Line 873    C
     kernel32.dll!7c817077()     
     [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]

    void _Copy(size_type _Newsize, size_type _Oldlen)  // _Newsize = 2880154539, _Oldlen = 0

According to:
https://pocoproject.org/docs/99150-WindowsPlatformNotes.html

- The default is to link the POCO C++ Libraries dynamically (DLL).
- To link statically, the code using the POCO C++ Libraries must be compiled with the preprocessor symbol POCO_STATIC defined.

The question is: will the dynamically linking (dlls) slow down the bruteforce process: the speed of executing program?

I am still confused regarding Poco dll name convention:
https://stackoverflow.com/questions/12063582/what-are-the-lib-files-in-poco-c

 

Share this post


Link to post
CodeExplorer

Hi. Some good news: I've used include files directory (.h files) from an very old Poco and I've used libs from a newer Poco
I've set POCO_STATIC in Preprocessor Definitions of all projects;
now this thing works fine on all builds!
 

  • Thanks 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×
×
  • Create New...