{"action":"closed","issue":{"number":717,"created_at":"2011-10-11T08:09:07Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hi all, I'm trying to run, under Windows XP, a C++ application containing calls to Mapnik's (release 0.7.1) procedure, but always getting error messages.\r\nSome details: I have created a Qt application (Qt library release 4.2.3) with Microsoft Visual C++ 2005, it just contains a form with a button.\r\nIn the onClick button event, I just create a Map object by calling Map(800,600), as shown in the following:\r\n\r\nusing namespace mapnik;\r\n\r\nstd::string mapnik_dir(\"E:/mapnik-0.7.1/lib/mapnik\");\r\n\r\ndatasource_cache::instance()->register_datasources(mapnik_dir + \"/input/\"); \r\n\r\nfreetype_engine::register_font(mapnik_dir + \"/fonts/DejaVuSans.ttf\");\r\n\r\nMap m(800,600);\r\n\r\nAfter linking all the necessary static libraries, and set the environement variable to use Mapnik's API, I can correctly compile the application.\r\n\r\nRunning in debug, the statement 'freetype_engine::register_font(mapnik_dir + \"/fonts/DejaVuSans.ttf\");' makes the application to crash with 'bad allocation' error.\r\n\r\nCommenting the above statement (freetype_engine::register_font ...), the statement Map(800,600) makes the application to crash with an 'access violation' error.\r\n\r\nReally don't know what I can do anymore.\r\nI'm linking the following libraries to my Visual C++ project:\r\n\r\n1) Mapnik 0.7.1 (mapnik.lib)\r\n\r\n2) freetype-2.4.4\r\n\r\n3) boost_1.46.0\r\n\r\n4) Unicode icu (icu4c-4_6-Win32-msvc10)\r\n\r\nI've included in the project the attached ltdl.h header file.\r\n\r\nAny help would be very appreciated.\r\nThanks in advance.\r\n\r\nMassimo","comments":1,"title":"Runnin mapnik application under Windows XP","updated_at":"2011-10-11T08:09:08Z","url":"https://api.github.com/repos/mapnik-org/mapnik/issues/717","id":1872395,"assignee":null,"milestone":null,"closed_at":"2011-10-11T08:09:08Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"},"html_url":"https://github.com/mapnik-org/mapnik/issues/717","labels":[{"name":"Core_Library","url":"https://api.github.com/repos/mapnik-org/mapnik/labels/Core_Library","color":"FFFFFF"}],"state":"closed"},"legacy":{"number":717,"action":"closed","issue":1872395}}