Delphi IDE (239)
Windows with Delphi (38)
Windows API (94)
Windows Filesystem (229)
Windows Forms (527)
Windows Graphics (1092)
About this site
Links to us
General :: Programming :: Delphi :: Windows with Delphi
Windows programming with Delphi
This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.
Generated 12:01:30 on Sep 24, 2020
Assign the current thread to the first CPU
Question: 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);
iThread : Handle;
iThread := GetCurrentThread();
|Most recent comments