Delphi IDE (89)
Windows with Delphi (280)
Windows API (94)
Windows Filesystem (41)
Windows Forms (69)
Windows Graphics (38)
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 20:02:24 on Oct 17, 2018
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