|
![]() ![]()
|
Berkeley DB allocates memory for returning key/data pairs and statistical information which becomes the responsibility of the application. There are also interfaces where an application will allocate memory which becomes the responsibility of Berkeley DB.
(버클리디비는 key/data pairs의 리턴과 애플리케이션에서 프리시켜야 하는 통계정보를 할당시킨다.또한 애플리케이션이 버클리디비가 프리시키도록 할당하는 함수가 있다.)
On systems in which there may be multiple library versions of the standard allocation routines (notably Windows NT), transferring memory between the library and the application will fail because the Berkeley DB library allocates memory from a different heap than the application uses to free it, or vice versa. To avoid this problem, the DB_ENV->set_alloc and DB->set_alloc methods can be used to give Berkeley DB references to the application's allocation routines.
(표준할당 루틴의 멀티라이브러리를 가진 NT같은 시스템에서 라이브러리와 애플사이에서 메모리 전송은 실패한다.왜냐하면 버클리디비 라이브러리는 애플리케이션이 프리시키는 것과 다른 힙으로 부터 메모리를 할당하기 때문이다.이런 문제를 피하기 위해 DB_ENV->set_alloc and DB->set_alloc를 사용하여 버클리디비에게 애플리케이션의 할당루틴에 대한 참조를 줄수 있다.)
![]() ![]()
|
Copyright (c) 1996-2003 Sleepycat Software, Inc. - All rights reserved.