Using MM with Delphi 2009
Google led me to this site and I quickly downloaded the MM so I could test it, assuming that what goes for the RAD should also go for the Pro version of D2009. Although being an fairly experienced Delphi programmer I haven't dwelled much over MM issues in multi-CPU-environments; I need some help here.
1. Installation is done by replacing the two DLL's in the bin-directory. Correct?
2. What do I do when distributing my applications? Delphi applications are normally contained in one exe and need not rely much on DLL's. Shall I now include the MM-DLL's and register them at the host-system?
3. I saw this test algorithm
DWORD WINAPI threadExecute(LPVOID obj)
for (int i=0; i<10000000; i++)
char* test = new char;
... although understanding most of it I'm unsure on how to reproduce the test in D2009. Initially I would try this but the words "WINAPI" (which I don't know what means in the C++ context) and "Thread" makes me believe that there's more to it. Should the tests be run in threads (a.k.a. not the main thread)? If so, how?
Scenario: Console application:
function ThreadExecute(Sender: TObject): boolean;
result := true;
for i := 0 to 10000000 - 1 do
TickStart := GetTickCount;
writeln(format('%d ms',[GetTickCount - TickStart]));