블로그 이미지
fiadot_old

칼퇴근을 위한 게임 서버 개발 방법론에 대한 심도있는 고찰 및 성찰을 위한 블로그!

Rss feed Tistory
Technical Article/펌 2007. 9. 15. 19:14

서버 구현할꺼~

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력해주세요.

Technical Article/펌 2007. 8. 8. 13:22

Big O Expression

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력해주세요.

Technical Article/펌 2007. 7. 31. 18:38

Windows Console Application 추천 사이트

Turbo C를 사용했던 개발 자라면 gotoxy가 친근할것이다.
Windows Console Application에서도 유사한 기능이 있다는걸 아시는가??

콘솔어플에 키이벤트를 날리려고 삽질하다가
발견한 사이트...

콘솔을 좀더 아름답게~~

Working with Windows Consoles
  • A multi part tutorial demostrating features of Win32 Console Applications or "DOS boxes".
  • Part 1 describes consoles
  • Part 2 naming consoles, obtaining standard handles, moving the cursor, blocks of characters and clearing the screen
  • Part 3 drawing lines, boxes and grids and hiding/modifying the cursor
  • Part 4 colour
  • Part 5 keyboard and mouse events
  • Part 6 console size issues
  • There are some more parts of this tutorial to come



    http://www.adrianxw.dk/SoftwareSite/index.html
,
Technical Article/펌 2007. 7. 1. 00:38

CxImage 메소드 요약

- Cximage api에 대해 잘 정리해 놓은것 퍼옴.^^
http://katalog.egloos.com/tb/2626276


출처 : http://hogwarts.tistory.com/tag/CxImage 

,
Technical Article/펌 2007. 6. 12. 09:08

MFC 헤더와 라이브러리 설명 (The Foundation Classes Headers and Libraries)

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력해주세요.

Technical Article/펌 2007. 3. 17. 15:12

VC++ 프로그래밍 관련 잡다한 정보 몇가지..

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력해주세요.

Technical Article/펌 2007. 1. 16. 22:09

OLEDB CMultipleResults memory leak(메모리누수) 발생!!

[테스트 환경]
MSSQL2000에 OLEDB로 ATL을 이용하여 접근
개발환경은 .Net2005, VS6 2가지 버젼을 사용해서 테스트


-- 테스트용 Stored Procedure
CREATE PROCEDURE sp_ResultParamIO

@num int,

@Ret int OUTPUT

AS

BEGIN

  select * from UserInfo where ID = @num

  Set @Ret = 99

END


위와같은 2가지 결과를 가지는 SP(이하 Stored Procedure)에서는

다음과 같이 구성할수 있다.

CCommand<CAccessor<CResultParamIO>, CRowset, CMultipleResults> cmdSP;

즉, 로우셋을 가지고 결과가 여러개로 되기 때문에

Cmd.GetNextResult(NULL, true);

를 통해서 @Ret값을 받을수 있게된다.


근데 문제는 CMultipleResults를 붙이게 되면 cmdSP를 호출할때마다

메모리가 늘어나게 된다.

혹시나 OLEDB의 컨넥션풀이나 메모리풀과 관련되었나 싶어서 물리적메모리와

가상메모리가 다 할때가지 기다려봤는데 줄어들지 않았다 -_-

이와같은 문제를 해결하고자 MS문서를 찾아봤는데 UDL파일이나 컨넥션 스트링을 이용한

leak나는 부분이 patch됐다는 사실을 알고 이를 수정해보았으나

여전히 누수가 존재했다 -_-....


데브피아와 여타 개인사이트들, 뉴스그룹을 통해 찾아본 결과

이는 CMultipleResults의 버그라고 볼수 밖에 없다 -_-;;



누구 아는분 있으면 해결책을 제시해 주시오 ㅡㅠ.....


이때문에 SP를 2개로 구성해서 하나 받고 또받고

이런 더러운 구조로 개발을 종료한다.



[참고자료]

OLE DB ? ATL Consumer Templates and “Memory Leaks” · Thu Mar 25,
http://exold.com/article/ole-db--atl-consumer-templates-and-memory-leaks-

BUG: Memory Leak in ATL OLE DB Consumer Template Functions
http://support.microsoft.com/kb/271926


http://www.devpia.com/MAEUL/Contents/Detail.aspx?BoardID=51&MAEULNo=20&no=5204&ref=1760
http://www.google.co.kr/search?sourceid=navclient&hl=ko&ie=UTF-8&rlz=1T4GGLG_ko___KR204&q=msdn+GetNextResult
http://www.google.co.kr/search?hl=ko&newwindow=1&rlz=1T4GGLG_ko___KR204&q=CMultipleResults&lr=
http://dbforums.com/archive/index.php/t-481961.html
http://msdn2.microsoft.com/en-us/library/ms713643.aspx

,
Technical Article/펌 2007. 1. 11. 03:31

Drag & Drop (드래그 엔 드롭) 구현하기~

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력해주세요.

Technical Article/펌 2006. 11. 26. 08:50

OleDB 기본사용법.

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력해주세요.

Technical Article/펌 2006. 11. 6. 02:32

MFCSDI 클래스간 통신

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력해주세요.

TOTAL TODAY