-
Content Count
2994 -
Joined
-
Last visited
-
Days Won
107
Everything posted by dummzeuch
-
This was about a set with at most 20 different entries, so performance would most likely not have been an issue (when I asked the question, it was only 5). I have solved the actual problem differently by now. A set is still involved, but not a set of object instances but simply a classical set of an enum.
-
What happens, when I add the same object twice? In a set, the duplicate will be discarded, but in a list?
-
For medical devices/software it's not just ISO 9001 (which applies to my current job too) but the even worse standards of the American Food and Drugs Administration (FDA). I spent about 90% of my time producing paper, so our customers had to pay 10 times more.
-
Interesting. I would never ever work again for a company involved with medical devices or software. The pseudo QM requirements (not really improving quality but generating lots of paper) drove me crazy.
-
What may happen, if uncomplete, unclear advices found ...
dummzeuch replied to Rollo62's topic in Network, Cloud and Web
I don't. -
It's "English", not "english". Just saying ... Apart from that I agree 100% and I could add some more, but I can't really be bothered.
-
OK, so where do you create and assign Settings in that code? That must be done before using it.
-
It is not be necessary to free Settings before creating it. That change cannot have solved your problem, it's something else that you also changed.
-
What may happen, if uncomplete, unclear advices found ...
dummzeuch replied to Rollo62's topic in Network, Cloud and Web
If you say so, it must be right. -
How is Settings declared and how instantiated? Some code would give us a lot more information to help you.
-
What may happen, if uncomplete, unclear advices found ...
dummzeuch replied to Rollo62's topic in Network, Cloud and Web
Rest assured that people and companies in Europe are fully aware of that topic. And even more: Due to some American laws even servers that are hosted in the EU but are owned by American companies or even companies owned by American companies may be questionable. In theory that means that cloud services from Amazon, Microsoft, Google etc. are a no go for European companies. The reality unfortunately is very different, as even governments, universities and schools use these services, because lobbying has so far prevented that the laws are being applied. -
I just applied your patch in revision #4028
-
I'm currently on vacation with intermittent internet access and only a notebook computer. I'll try to have a look later today, but I can't promise anything.
-
About Delphi 11.3 CE Platform Selection
dummzeuch replied to ChenShou's topic in Delphi IDE and APIs
So far, any Delphi library or tool that Embarcadero bought has been abandoned sooner or later. What makes you think this would change? -
Sorry, I missed that bit.
-
There is always the option of generating simple text files and synchronising them to other computers. But I guess that's not what you are after.
-
Res is a Boolean variable.
-
See my first answer above. It contains the code you need, just replace (x, y-i) with HasPixelAt(x, y-i). https://en.delphipraxis.net/topic/8900-for-i-x-to-y-inclusive-how/?do=findComment&comment=74894
-
Scanning for files while they are created or deleted
dummzeuch replied to Marus's topic in Windows API
It takes a snapshot of the metadata of the files (name, size, properties ...), not the files themselves. That's how that function works, as far as I know. Whether you think it makes sense or not, doesn't affect that. -
Scanning for files while they are created or deleted
dummzeuch replied to Marus's topic in Windows API
FindFirstFile creates a snapshot of the files that exist at the time it is called and returns a handle to that list. FindNextFile then only enumerates over that already existing list. (You also need to call FindClose afterwards to free the internally used resources.) If during that time a file is created or deleted, the list remains unchanged. You will have to check for this in your code. As fpiette said: You might want to use FindFirstChangeNotificaton etc. instead. But even then you will have to check whether the files still exist. -
So, what is (x, y-0) etc. meant to evaluate to? That's not a Boolean expression nor an integer that could be processed with a bit manipulation. Ok, assuming this somehow is a Boolean anyway, that's the code I'd use: Res := True; For i := 0 to 7 do begin If not (x, y-i) then begin Res := False; Break; End; End; if Res then ....
-
You only need an end for each begin in your code, and a final end at the end of a program or unit. My guess is that your if then else did not use a begin end block.
-
What I meant is: If the IDE package for the welcome page is removed from the list in the registry - which is the way I usually use to get rid of it - the WelcomePagePluginService will forever stay nil.
-
Creating forms that will never be shown nonetheless take time an resources to create, it also opens the door for unintended side effects. That's why I don't like the way the expert (and now also the welcome page plugin) handle the creation of the form. I'm not sure. I just played a bit with it and it is actually quite nice to be able to move files between folders using drag and drop without having to open the Favorite Files window. On the other hand, it prevents a lot of possible problems if the welcome page plugin is read only. So, let's do it the easy way: Read only it is. (I also just found that there are several bugs in that form: * The property menu item is never enabled. * F2 always edits the file, even if the tree view is active control. * The popup menu for the files works only if the view is not "Details" or no file is selected These are really odd.)
-
Someting else just occurred to me: What, if the welcome page plugin is not available? Some people might not want that page and remove the plugin. So I tried that and it turned out that WelcomePagePluginService will always be nil and the timer will run until the IDE exits. Which means that there should probably a counter or something similar that limits the number of calls to the timer event before giving up.