Delphi .NET (2) Database (71) Delphi IDE (89) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280) Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
Exchange Links About this site Links to us 
|
General :: Windows :: Programming :: Windows with Delphi
Windows programming with Delphi
Articles:
This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.
Featured Article
Assign the current thread to the first CPUQuestion: My application crashes on systems with multiple CPUs or dual-core CPUs
Answer: You probably have some re-entrancy problem. Try to force all threads to run on CPU 1. This means to put the code from below in all threads and of course in the main thread, e.g. in FormCreate().
 | |  | | procedure TForm1.FormCreate(Sender: TObject);
var
iThread : Handle;
begin
iThread := GetCurrentThread();
SetThreadAffinityMask(iThread, 1);
end;
| |  | |  |
|
| Most recent comments
|