Jump to content

Attila Kovacs

Members
  • Content Count

    2022
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by Attila Kovacs

  1. Attila Kovacs

    JFF: FMX + FR + HTML

    @Alexander Sviridenkov So you have implemented the whole office package into Delphi? I hope it's not only for FMX. 😉
  2. Attila Kovacs

    JFF: FMX + FR + HTML

    holy cow Alexander
  3. Attila Kovacs

    TWebBrowser HDPI issue

    I was playing with TWebBrowser and it turns out that it just renders crap in HDPI mode. A simple winforms app with a webbrowser renders everything correctly. Both exe's are added to FEATURE_BROWSER_EMULATION with 11000 and checked the compatibility mode with https://detectmybrowser.com/ Tested in 10.1/10.2/10.3 I could not find any report about it, maybe I'm doing something wrong. Has anyone else experienced this?
  4. Attila Kovacs

    TWebBrowser HDPI issue

    Got it. The key is to register the exe name under "FEATURE_96DPI_PIXEL" in the registry with a dword=1. This makes TWebBrowser render correctly in a DPIAware applicaiton. Thank you @Der schöne Günther for the hint!
  5. Attila Kovacs

    TWebBrowser HDPI issue

    Wow @Der schöne Günther, bingo. I've compared the manifests between the winforms and the delphi app and the winforms app has no dpiAware:True in it. So I unchecked it in Delphi and voila, they render the same. Thanks for the tip, but.... Now I have an other question... What should I do now? Looks like I would need it for the VCL app but not for the TWebBrowser!?
  6. Attila Kovacs

    webbrowser Google map script error

    maybe your original project's exe name added to the registry to run in hihgher compatibility mode? https://stackoverflow.com/questions/25843845/how-to-have-delphi-twebbrowser-component-running-in-ie9-mode
  7. Attila Kovacs

    VERY SMALL IDE font sizes

    It's amazing that you can argue with a quotation from your own post. Maybe 400% text zoom would be better.
  8. Attila Kovacs

    VERY SMALL IDE font sizes

    So what? First time experiences with 4K?
  9. Attila Kovacs

    VERY SMALL IDE font sizes

    scaling, not the text size
  10. Attila Kovacs

    VERY SMALL IDE font sizes

    no. use 200% scaling for best result
  11. Attila Kovacs

    What are your compiler settings for debug builds?

    This makes Greta even more sad.
  12. Attila Kovacs

    ISAPI DLL MaxConnections

    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...
  13. Attila Kovacs

    ISAPI DLL concurrent requests

    Well, I'd clone/backup the project and start removing all 3rd party units, including firedac. - did you check the system/application events? - if you kill all the w3wp processes in the taskmanager, will then IIS stop faster?
  14. Attila Kovacs

    ISAPI DLL concurrent requests

    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.
  15. Attila Kovacs

    ISAPI DLL concurrent requests

    Ok. How do you create FDManager (Create(nil)?, not that you free it twice) and where is the var declared?
  16. Attila Kovacs

    ISAPI DLL concurrent requests

    How can you see that? Hourglass, or the time until the dll is released?
  17. Attila Kovacs

    ISAPI DLL concurrent requests

    sidenote: in "TWebApplication.Create" there is already a "if IsLibrary then IsMultiThread := True;"
  18. Attila Kovacs

    ISAPI DLL concurrent requests

    ok -what if you remove the .free? Will it leak memory or does it get freed when IIS unloads the dll? -what if you create your FDManager with "TISAPIApplication(Application)" as owner? It's a TComponent descendant so it will free FDManager.
  19. Attila Kovacs

    ISAPI DLL concurrent requests

    I'm not sure why do you need a critical session for freeing something? Do you think other threads would still using it? And you just freeing it? Just asking.
  20. Attila Kovacs

    Andorid Char xor is this a delphi bug or is it my fault?

    It shows the values as octal up to 31 except TAB. Nice.
  21. Attila Kovacs

    Andorid Char xor is this a delphi bug or is it my fault?

    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?
  22. Attila Kovacs

    Cannot perform this operation on a closed dataset

    why don't you hit 'Break' and look into the call stack?
  23. Attila Kovacs

    How to Code SQL IN Statement correctly

    you have to pass it one by one, like: SELECT * FROM tTableName WHERE Status IN (:ST0,:ST1) thus, you have to build your query with there is no "IN (:ONEPARAM)"
  24. Attila Kovacs

    Best way to refresh static data

    I don't get it, if its a remote server, how comes that there is no REST between the client and the server?
  25. Attila Kovacs

    Open jpg Image as Text File

    https://www.php.net/manual/en/function.exif-read-data.php
×