> BTW, would probably want to avoid doing actual I/O since it may screw up > ordering. Maybe set a static vector vector > nextwas[global_index++]=icode > where icode varies depending on point in code being traced. Could use > interlocked increment for global_index to be safe. Then output nextwas just > before dll exit.
Intgerlocked increment won't work; need critical section around the assignment statement. > > > > > > >
