kvendy / frl

Automatically exported from code.google.com/p/frl
0 stars 0 forks source link

some bugs #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
hi, 
i just built the lib and demo server by mingw, and found some bugs:

1. the inline method SingletonMeyers::getInstance may cause error, it's a 
singleton but inline method seems create multi-instance. I moved the 
implementation to a cpp file(fr_opc_server.cpp):

template <class T>
T& SingletonMeyers<T>::getInstance(){
    static T tmp;
    return tmp;
}

2. in GroupItem::Init, about #line 30, null string will cause problem, 
better be like this:
if(itemDef.szItemID)
    itemID = wstring2string( itemDef.szItemID );        
if(itemDef.szAccessPath)
    accessPath = wstring2string( itemDef.szAccessPath );

Original issue reported on code.google.com by myopc...@gmail.com on 9 Sep 2008 at 8:38

GoogleCodeExporter commented 8 years ago
btw, i used the lasted source by svn

Original comment by myopc...@gmail.com on 9 Sep 2008 at 8:46

GoogleCodeExporter commented 8 years ago
Fixed in revision 124 and 128

Original comment by serg.bab...@gmail.com on 10 Oct 2008 at 11:25