Delphi xe10 checkterminated11/5/2022 The main problem with it is that it is afaik not possible to see if the wait terminated on timeout, stopevent or whatever. This class function returns the same value as the Terminated property, only that you can call CheckTerminated from outside the thread class. Use CheckTerminated to check whether the Terminated flag has been set on the current thread. Delphi xe10 checkterminated code#Long term I might simply take the waitforevent code and make an own version. Indicates whether the thread has been asked to terminate. In the end I simply renamed the 4.11f units and use them in parallel to the old version, using the 4.11f for the threaded codebases and the old one to maintain existing code. I'll do that in due time, any suggestion which version was the last readstr(ansistring) one? Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. Unfortunately the changes are a bit to risky to propagate back to the production version (completely written protocol decoding), so I'll have to test with inbetween versions (between 4.0 and 4.11f). The shellapi.h header defines ShellExecute as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. I got stuck for a while because the application crashed on startup, but that is because I use gnugettext, and Comport packages a different (non unicode even?) version. I did a quick test with the newest version, and did the necessary rearranging (kill string function use for an essentially binary protocol). It seems that the read doesn't delete the read chars from the incoming queue or so. This allows me to describe the behaviour between dxe/comportv4 and bds2006/comportv3 better the v4 code generates much more read events (hundreds/second). I fixed a small bug though in the codepath that went a bit different from what I thought (not in the above code) I reinstalled an old turbo delphi copy, and verified it worked there with v3. I'm still debugging what is going on, but am in a hurry, which is while I post this in the hope of quickly getting pointers.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |