<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:58:53 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CXX-330] Can&apos;t start example Programm from Github Tutorial</title>
                <link>https://jira.mongodb.org/browse/CXX-330</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;When i start the Tutorial Programm from &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/wiki/Tutorial&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Github&lt;/a&gt;&lt;br/&gt;
i get the following error:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;First-chance exception at 0x000007FEFDBD940D in MongoTest1.exe: Microsoft C++ exception: mongo::MsgAssertionException at memory location 0x00000000001BEA70.&lt;br/&gt;
The program &lt;span class=&quot;error&quot;&gt;&amp;#91;8800&amp;#93;&lt;/span&gt; MongoTest1.exe has exited with code 0 (0x0).&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Any idea how to fix this issue?&lt;/p&gt;

&lt;p&gt;My Configuration:&lt;br/&gt;
Windows 7 64bit&lt;br/&gt;
Boost 1.56 64bit&lt;br/&gt;
current mongoC++ lagacy driver 64bit&lt;br/&gt;
Visual Studio Express 2013&lt;/p&gt;</description>
                <environment></environment>
        <key id="157192">CXX-330</key>
            <summary>Can&apos;t start example Programm from Github Tutorial</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="Kasitt">Kasitt [X]</reporter>
                        <labels>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Tue, 9 Sep 2014 16:38:33 +0000</created>
                <updated>Wed, 11 Sep 2019 19:05:25 +0000</updated>
                            <resolved>Wed, 10 Sep 2014 12:22:16 +0000</resolved>
                                                    <fixVersion>legacy-1.0.0-rc1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="715511" author="adam.midvidy" created="Wed, 10 Sep 2014 12:17:27 +0000"  >&lt;p&gt;Glad to help! I will update the example as well.&lt;/p&gt;</comment>
                            <comment id="715416" author="kasitt" created="Wed, 10 Sep 2014 07:53:27 +0000"  >&lt;p&gt;Thanks for your help Adam. That solves my problem. So simple &lt;del&gt;.&lt;/del&gt;&lt;br/&gt;
Maybe it is a good idea to update the tutorial side &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="714854" author="adam.midvidy" created="Tue, 9 Sep 2014 18:16:54 +0000"  >&lt;p&gt;It looks like we failed to update the example on the wiki after adding the mongo::client::initialize() function.&lt;/p&gt;

&lt;p&gt;Could you try calling mongo::client::initialize() at the start of the program in main() ? &lt;/p&gt;

&lt;p&gt;Here is an example &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/blob/legacy/src/mongo/client/examples/insert_demo.cpp#L32-L36&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/blob/legacy/src/mongo/client/examples/insert_demo.cpp#L32-L36&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="714832" author="kasitt" created="Tue, 9 Sep 2014 18:01:58 +0000"  >&lt;p&gt;When i run the program direct in the windows console i get the following:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;caught getnameinfo error errno:10093 Either the application has not called WSAStartup or WSAStartup failed.&lt;/p&gt;&lt;/blockquote&gt;</comment>
                            <comment id="714762" author="adam.midvidy" created="Tue, 9 Sep 2014 17:20:35 +0000"  >&lt;p&gt;Are you running the exact example program? The try-catch block in the example code should have printed out the what() of the exception.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs22lz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>136747</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>