Click here to Skip to main content
15,916,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: placement new Pin
Dangleberry11-Sep-03 23:55
sussDangleberry11-Sep-03 23:55 
GeneralC++ editor Pin
Jerome Conus11-Sep-03 22:06
Jerome Conus11-Sep-03 22:06 
GeneralRe: C++ editor Pin
berndg12-Sep-03 0:19
berndg12-Sep-03 0:19 
GeneralRe: C++ editor Pin
Neville Franks12-Sep-03 0:26
Neville Franks12-Sep-03 0:26 
GeneralRe: C++ editor Pin
typist12-Sep-03 1:22
typist12-Sep-03 1:22 
GeneralRe: C++ editor Pin
Dangleberry12-Sep-03 1:46
sussDangleberry12-Sep-03 1:46 
GeneralPainting problem in CFormView with overlapping ActiveX Pin
sanskypotov11-Sep-03 21:47
sanskypotov11-Sep-03 21:47 
GeneralRead backwarts from file Pin
Eddie70011-Sep-03 20:29
Eddie70011-Sep-03 20:29 
Hi,

I have to read from very large files (> GBytes) and parse it (MPEG data, trick modes: FFW/FRw)in "real time" (about 10 MByte/S) on Windows XP system. In some cases I have to read and parse it forwards and in other cases i have to read it starting at the enf of the file and parse it backwarts. I did it in C++ and MFC. I have used the CFile class. In both cases I read small portions (about 64k) from the file, move it into a ringbuffer for later parsing.In the case of forward this works fine.
Backwards I jump back a specific length and read/move that portion of data into the ringbuffer. Repeating this steps i walk backwarts the file in 64k steps.
In the case of small files or for some seconds (dependante on system memory) this works also fine.
But in opposite to forward the system cache seems to increase dramaticaly. At a certain time the sytem starts pageing all other applications in the memory, what causes the system reaction time to become very slow and the reading stream from the file is interrupted.
It seems to me that the cache manager is not optimized to read from a file in backward direction.
Are there any ideas or experiences out there how i can handle reading backwards in a file in "real time" ??
Is there anything i can do, that the cache manager understands that i am walking backwarts ..

Thanks a lot for your help.
EddieConfused | :confused:


GeneralRe: Read backwarts from file Pin
Neville Franks12-Sep-03 0:32
Neville Franks12-Sep-03 0:32 
GeneralRe: Read backwarts from file Pin
Dangleberry12-Sep-03 1:49
sussDangleberry12-Sep-03 1:49 
GeneralRe: Read backwarts from file Pin
Mike Dimmick12-Sep-03 2:56
Mike Dimmick12-Sep-03 2:56 
GeneralRe: Read backwarts from file Pin
Eddie70015-Sep-03 1:23
Eddie70015-Sep-03 1:23 
GeneralCListCtrl + InsertColumn Pin
KKR11-Sep-03 19:44
KKR11-Sep-03 19:44 
GeneralRe: CListCtrl + InsertColumn Pin
Jagadeesh VN11-Sep-03 20:21
Jagadeesh VN11-Sep-03 20:21 
GeneralRe: CListCtrl + InsertColumn Pin
KKR11-Sep-03 21:51
KKR11-Sep-03 21:51 
GeneralLayering bitmaps Pin
smjones11-Sep-03 18:38
smjones11-Sep-03 18:38 
GeneralRe: Layering bitmaps Pin
Jagadeesh VN11-Sep-03 20:28
Jagadeesh VN11-Sep-03 20:28 
GeneralRe: Layering bitmaps Pin
smjones14-Sep-03 15:03
smjones14-Sep-03 15:03 
GeneralChanging exe name. Pin
Matt Gates11-Sep-03 18:07
Matt Gates11-Sep-03 18:07 
GeneralRe: Changing exe name. Pin
Vadim Tabakman11-Sep-03 18:17
Vadim Tabakman11-Sep-03 18:17 
GeneralRe: Changing exe name. Pin
Matt Gates12-Sep-03 7:42
Matt Gates12-Sep-03 7:42 
QuestionHow to search a device,such as USB device? Pin
njbull11-Sep-03 17:58
njbull11-Sep-03 17:58 
QuestionIs there any method for drawing box without using MFC? Pin
nwillie11-Sep-03 17:46
nwillie11-Sep-03 17:46 
GeneralPrint Picture Pin
vancouver77711-Sep-03 16:36
vancouver77711-Sep-03 16:36 
GeneralRe: Print Picture Pin
cje12-Sep-03 4:42
cje12-Sep-03 4:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.