Hey, there!<br><br>I have developed an application using Qt and BerkeleyDB. BerkeleDB will be added into<br>one plugin of this application. When this application launches, this plugin will be loaded.<br><br>My problem is, when I add BerkeleyDB into the application code, everything is OK.<br>


But when I put the same code into my plugin code, the application cannot execute.<br>It says the exit code is 255. I've no idea how to solve this problem. Could you tell me<br>why it happens?<span style="font-family:'Consolas';font-size:11pt;font-weight:600;color:#0000aa"></span><br>


<br>PS: The Db::open() function will be down. If I put<br>    db<span style>-></span><span style="font-style:italic">open</span><span style>(</span>NULL<span style>,</span><span style="color:#c0c0c0"> </span><span style>"mydb"</span><span style>,</span><span style="color:#c0c0c0"> </span>NULL<span style>,</span><span style="color:#c0c0c0"> </span><span style="color:#800080">DB_HASH</span><span style>,</span><span style="color:#c0c0c0"> </span>DB_CREATE<span style>,</span><span style="color:#c0c0c0"> </span><span style="color:#000080">0</span><span style>)</span><br>


in main(), everything is OK. But if I put it in the constructor of plugin, it crashes.<br clear="all"><br>-- <br>Cheng Liang<a href="http://about.me/devbean" target="_blank"></a><br>Nanjing, China<br><a href="http://www.devbean.info" target="_blank">http://www.devbean.info</a><br>

from: <a href="mailto:chengliang.soft@gmail.com" target="_blank">chengliang.soft@gmail.com</a><br>