Boost logo

Boost :

From: Michael Clagett (mclagett_at_[hidden])
Date: 2002-09-21 06:41:59

Hi --

I am interested in developing a MIDI message stream with stream and iterator
semantics that can be used to read and write MIDI messages to and from a
variety of STL containers. I am working on a Windows 2000 platform and the
Microsoft-provided sample code I am trying to emulate for implementing MIDI
message handling is fairly old and employs a buffer locked into fixed memory
with GlobalLock and a callback routine that is expected also to be placed in
a fixed code segment to avoid page faults during time-critical MIDI message

I was looking at the sample circular buffer iterator adapter code on the
Boost site but am not clear whether it is practical to try to implement this
in a fixed memory segment. If it is, will I then run into problems trying
to use STL facilities inside a time-critical callback that itself is placed
into a fixed code segment? Has anybody had any experience he or she can
share in doing this sort of thing or is it too complicated to try to use STL
with real-time message processing types of applications?

Any help and guidance as I embark on this project would be greatly

Boost list run by bdawes at, gregod at, cpdaniel at, john at