Sun, 2009-01-11 02:11

Happy Birth Day me.

Submitted by chatsiri on Sun, 2009-01-11 02:11.

Posted in | chatsiri's blog | 1 comment | quote | 1052 reads »

From chatsiri.com

Since 11 Jun 1986,03.00 PM.Kanthalak Hospital,Srisaket.

Note.
Cisco extends Phase-1 of the developer contest to February 27th, 2009[link].

Sun, 2008-12-28 08:11

Debug code with ACE_DEBUG.

Submitted by chatsiri on Sun, 2008-12-28 08:11.

Posted in | | | | chatsiri's blog | add new comment | quote | 1271 reads »

Little example macro debug with ACE.It's not good idea some case if you implement little programs.

//Cannot get data
std::cout<<"----------------Cannot get data --------------------------\n";
ACE_DEBUG((LM_ERROR,
"Trace debug get( ) function : %d ",
cursorPointer->get(&key, &data, DB_SET )));

std::cerr<<"Not record : "< std::cout<<"----------------End Cannot get data-----------------------\n";

After execute code.See below.

From chatsiri.com

Before compile code.I update Sconstruct script for Scons.
Sconstruct add " 'ACE' " in USED_LIBS

USED_LIBS = ['db_cxx',
'pthread',
'ACE']

See also at Sconstruct[link]

Sat, 2008-12-20 07:40

Cannot invoke data after insert data to Berkeley Database.

Submitted by chatsiri on Sat, 2008-12-20 07:40.

Posted in | | chatsiri's blog | 3 comments | quote | 1111 reads »

It's not kidding in BDB.Last time,I thought BDB had concept same other driver connections of API.Step for insert key and data into file.BDB generate file insert key and data.But I cannot invoke data after insert.Some problem(I think) because create 2 object create in same time.First object using open database function during second object use open function.

What's problem?
EnvTest.cpp[link]
EnvTest.h[link]
retiveDatabase.h[link]