Jump to content

Attila Kovacs

Members
  • Content Count

    2069
  • Joined

  • Last visited

  • Days Won

    29

Posts posted by Attila Kovacs


  1. 44 minutes ago, Mark Williams said:

    I set MaxConnection to 1000 I assume that will not of itself degrade performance

    you are right, it wont.

    this is all what happens:

     

      if (FMaxConnections > 0) and (FAddingActiveModules >= FMaxConnections) then
        raise EWebBrokerException.CreateRes(@sTooManyActiveConnections);

     

    Calculating the max allowed concurrent user depends on many things and there is no exact formula.

    You could do some stress-test to see how the server works under load.

    This would also test how your dll and connection pool are performing, are there deadlocks, unexpected behavior, etc...

     

     

    • Like 1

  2. Ok.

    - I'll assume then that you are aware that in case of TFDManager.Create(SomeComponent), including placing the component on a datamodule, FDManager will be free'd if SomeComponent is free'd.

    - I'm sure, that you have tried commenting out the whole OnTerminate, and IIS still stalls on stop.

    Let me know if you find something. I'm really curious.


  3. I have no clue what is this for but 0x8 is octal 10 and 0x9 is TAB which is "\t".

     

    We still can't see the most important part of the code, how do you evaluate the "output".

     

    Anyway, no matter what it is, this is for sure not the way this should be done.

     

    Edit: Also, the output is suspicious.

    "This code has been working on windows for years."

    How many years? 20? Was it compiled with an AnsiString Delphi compiler?

     


  4. You can't just register a clipboard format and expect that every control starting using it. That's not how windows clipboard works.

    My implementation was attached 11 hours ago, need further testing. It looks good so far.

    By the way, with the very same unit it would be possible to encrypt the clipboard data too. But I see no use for that, just saying.

     

     


  5. Ok, here is my prototype.

     

    - The goal was to keep application data safe from the clipboard.

    - It tries only CF_UNICODETEXT to keep safe, every other formats are free to come and go.  (for now?)

    - RichEdit does not pass the necessary events, so it needs further client code to protect

    - no extended testing yet, but I can assure that this behavior will drive the user crazy 😉

    - no performance penalty tests

    - no clue what Antivirus programs says for modifying the import table

     

    It does capture clipboard events and keeps copied unicode text in a variable instead of the clipboard.

    On paste command, it pastes from this variable. (as far my basic paste algo works)

    On OS Clipboard change, if it's CF_UNICODETEXT, overwrites the In-App clipboard variable to be able to paste into the app from the outside.

     

    I have no clue yet if there are any flaws, but it was lot of fun to make it.

     

    InAppClipBrd.pas


  6. Hi all,

     

    Is there any existing unit/module whatever for handling In-App clipboard functionality?

    App should not leak data over clipboard, but I would like to keep the feature inside the app.

     

    It's shouldn't be too hard, I'm just curious if there is already any solution.

     

    Handling text is sufficient.

     

    (VCL/Windows)


  7. What if you create a TBaseBase with protected overloaded methods and public in TBase(TBaseBase) TChild(TBaseBase)

    or TBase with protecdted overloaded methods and public in TBaseExposed(TBase) and TChild(TBase) ?

     

    Or you go from New() to .FromJSON(JSON: string): TMyClass and .FromInteger(I: integer): TMyClass?

     

    Or creating records with Implicit operators for string and integer/whatever, then you could write Child := '{somejson}'; or Child := 1; (did I go too far?:)

×