N
Newsgroup Posting ID
i'm writing a dll that generates a lot of server console output and as it
will be loaded by several server tasks at the same time the dll output from
all those tasks will be intermixed so i'd like to tag each output line with
an 'id' (generated at dll load time) to identify which lines belong together
(came from the same task).
i've tried using the system time (including milliseconds) but it's not
enough, occasionally i can see two loads that were started in the same
millisecond, i thought of adding a random number to the end to break them up
but as these are being seeded with the (same) load time they end up
generating the same random number.
is there another way i can uniquely identify them?
thanks
will be loaded by several server tasks at the same time the dll output from
all those tasks will be intermixed so i'd like to tag each output line with
an 'id' (generated at dll load time) to identify which lines belong together
(came from the same task).
i've tried using the system time (including milliseconds) but it's not
enough, occasionally i can see two loads that were started in the same
millisecond, i thought of adding a random number to the end to break them up
but as these are being seeded with the (same) load time they end up
generating the same random number.
is there another way i can uniquely identify them?
thanks