Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-24-2005
fw_csha fw_csha is offline
Registered User
 
 
Join Date: Sep 2004
Posts: 22
Unhappy a problem About the example of freeze in reference

i meet a problem which has been met by another person .

as that:

[ D:\OpenSource\Ice-1.5.1\demo\Ice\myfreeze\Debug\myfreeze.exe: Berkeley DB: DbE
nv "db": db: No such file or directory ]
[ D:\OpenSource\Ice-1.5.1\demo\Ice\myfreeze\Debug\myfreeze.exe: Berkeley DB: DbE
nv "db": db\log.0000000001: No such file or directory ]
[ D:\OpenSource\Ice-1.5.1\demo\Ice\myfreeze\Debug\myfreeze.exe: Berkeley DB: DbE

This is the answer by Bernard :

By default, Freeze uses the environment name as the the Berkeley DB home directory (here db). You can change this using Freeze.DbEnv.env-name.DbHome. This directory must exist before you run your application.

Cheers,
Bernard

now !!!!
"D:\Ice-2.0.0-ThirdParty" is the path of which the Ice-2.0.0-ThirdParty installed .

i set "Freeze.DbEnv.env-name.DbHome" to "D:\\Ice-2.0.0-ThirdParty",
and change the "db" into "bin".

but the problem still exists.
how to do is correct?


Ice::PropertiesPtr props = Ice::getDefaultProperties(argc,argv);
props->setProperty("Freeze.DbEnv.env-name.DbHome",
"D:\\Ice-2.0.0-ThirdParty");
Ice::CommunicatorPtr communicator = Ice::initialize(argc,argv);

Freeze::ConnectionPtr connection = Freeze::createConnection(communicator,"bin");

Last edited by fw_csha : 02-24-2005 at 10:37 PM.
Reply With Quote
  #2 (permalink)  
Old 02-24-2005
bernard's Avatar
bernard bernard is online now
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 813
You misunderstood my post

By "Berkeley DB home directory", I meant where Berkeley DB is going to store its files for your application, not the directory where the Berkeley DB binaries (headers etc) are installed.

For example, if you write
Freeze::ConnectionPtr connection = Freeze::createConnection(communicator, "myDbEnvironment");

and don't set any properties, Freeze will create its files in the myDbEnvironment directory (this directory must exist: Freeze won't create it). Since "myDbEnvironment" is not an absolute path, Freeze looks for a myDbEnvironment subdirectory in your current directory.

Now, if you want to change the directory where Freeze (really Berkeley DB) store its file for myDbEnvironment, you can set in your config file:

Freeze.DbEnv.myDbEnvironment.DbHome = D:\bernard\myDbs\test1

Like before, D:\bernard\myDbs\test1 must exist ... Freeze won't create it for you.

Hope this is clearer!
Bernard
Reply With Quote
  #3 (permalink)  
Old 02-24-2005
fw_csha fw_csha is offline
Registered User
 
 
Join Date: Sep 2004
Posts: 22
thanks ~
very clearly!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freeze problem ruzark Help Center 2 11-15-2004 09:02 PM
Freeze problem freshman Help Center 1 08-18-2004 08:36 AM
Freeze problem xdm Help Center 1 12-15-2003 01:44 PM
reference count problem wanming Help Center 2 09-16-2003 11:40 PM
basic freeze problem salva Help Center 1 06-30-2003 07:14 PM


All times are GMT -4. The time now is 08:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.