File Types (37)
Internet Explorer (80)
Windows with Delphi (38)
About this site
Links to us
General :: Windows :: Programming
Programming Windows applications, services etc - by programming language.
This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.
Generated 12:02:01 on Aug 14, 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