Jump to content

FPiette

Members
  • Content Count

    1120
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by FPiette

  1. FPiette

    Need help with exception messages

    You said it runs under debug. If so, the IDE should show you the exact line of error if it happen in your code. It also show the call stack. The symtoms you describe makes me thing you have an uninitialized pointer or initialized object reference or use of an initialized local variable. Using a tool such as madExcept could help you find the issue.
  2. Your screen shot is useless. The application error dialog hide most of the installer window. I suspect your system is somewhat corrupted. I suggest the following: 1) Scan your computer with a good antivirus 2) Apply all available Windows updates. Restart your computer. 3) Use Microsoft System File Checker to repair missing or corrupted system files. 4) Manually delete all files and folders, including hidden one, related to Delphi and Embarcadero except Delphi 10.4 (If you want to keep that version) 5) Also delete all registry keys related to Delphi and Embarcadero except Delphi 10.4 (If you want to keep that version) 6) Be sure to disable ransomware protection in Windows Security before installing Delphi. Don't forget to enable it after installation. 6) Try once more to install Delphi. If this doesn't work, contact Embarcadero support.
  3. Of course you can! Windows is always available and can't be deselected. Installing only for Windows means not selecting other platform (iOS, Android, MAC, Linux).
  4. I would suggest to install basic Delphi for Windows, without any additional platform. Then when successful (Create an hello world type FMX application to check) add other platforms. It is likely that Delphi 11.2 use newer platform SDK compared to 10.4. Not sure you don't have to remove the existing SDK before installing it again thru Delphi installer.
  5. FPiette

    ICS & DelphiMVCFramework

    What I meant is that it is not the best way to use ICS. What Angus suggested is a good idea. Have your pool of ICS components run asynchronously in a single thread dedicated to that. And from the session thread, call the pool thread to execute the HTTP requests. Use thread synchronization object to make sure no conflict with concurrent access from all session threads. You can use ThreadAttach and thread detach if you like but you must be sure to attache before socket is opened and before any communication take place and detach after all communication is done and socket closed. I'm not sure about OpenSSL work when used from several threads.
  6. FPiette

    Load font into TStringlist

    This article explain how to use a font without installing it. This is not Delphi but make almost only use of Windows API which you can use from Delphi. Once the font is loaded, you can use it to paint individual characters to bitmaps and add them to TImageList.
  7. FPiette

    ICS & DelphiMVCFramework

    Why in the first place do you create a thread? Is this a DelphiMVCframework requirement? Of course you can put your TSslHttpCli component in a thread. You should better create it at the beginning of the Execute method and free it before returning from the execute method (With a try/finally construct). Your thread need to have a message pump or call the one in TWSocket to work properly. There are a few samples of threads in ICS distribution. Multi-threading is always more complex and overkill with an asynchronous component.
  8. FPiette

    ICS & DelphiMVCFramework

    Use pure asynchronous operation.
  9. FPiette

    FinalizeSsl

    You have to manage that yourself. Abort all communications when you detect the stop request and handle any error/exception before existing.
  10. I mean the code you posted and which contains unknown function js_keres.
  11. FPiette

    FinalizeSsl

    Are you sure all communications are done when you stop your service? Remember ICS component are asynchronous and work in the background.
  12. FPiette

    ICS & DelphiMVCFramework

    At first glance it is not correct. The component is asynchronous. Calling one method will merely start the process in the background. You shouldn't detach the component from the thread before it has finished the operation you requested. You should remind that ICS components are asynchronous and doesn't require multi-threading to execute a lot of operations in parallel. Multi-threading is only useful if you have a large number (hundreds) of active communications simultaneously. Other operations that your application does may require multi-threading, for example lengthy SQL requests if they don't use an asynchronous programming model.
  13. FPiette

    custom fonts and sizes showmessage()

    Why not create your own ShowMessage function? After all it is simply a modal form that you can easily build yourself to fit your needs.
  14. Please also fix your message. You can edit it.
  15. What is js_keres function?
  16. Use one of the functions: function ObjectIsType(const obj: ISuperObject; typ: TSuperType): boolean; function ObjectGetType(const obj: ISuperObject): TSuperType;
  17. Ask the developer! Before asking, read the SuperObject documentation.
  18. FPiette

    Create an XSD validated XML file

    I have no idea about XSD but for sure you can do the check in Delphi using System.RegularExpressions to do the check.
  19. FPiette

    Net Find Component

    You have to try the component in a sample application, creating the component at runtime. When it works, you can consider installing it in the IDE. That's not specific to that component but it is how any component has to be developed. When the component is in the sample application, you can use the debugger to understand where and why it blocks.
  20. FPiette

    Net Find Component

    You probably forgot to change Winsock to OverbyteIcsWinSock. The use clause should be this: uses Windows, Classes, SysUtils, ExtCtrls, OverbyteIcsWSocket, OverbyteIcsWSocketS, OverbyteIcsWinSock;
  21. Is your problem solved? If not, on which line EXACTLY does your code cause an AV? Run your program under the debugger using the debug release.
  22. FPiette

    Net Find Component

    What is the problem with "Src : TSockAddrIn;" ? What error message give the compiler. You really have to help us to help you!
  23. FPiette

    ScreenSnap and real window position (D7)

    Override the form's DoShow procedure and from there post a custom message to the form. In the corresponding message handler restore the form position and size. If you want an example, look at https://github.com/fpiette/OvbImgOrganizer/blob/main/Source/OvbImgOrganizer.Main.pas
  24. On which line EXACTLY does your code cause an AV?
  25. FPiette

    Net Find Component

    Please describe the problem you get. And tell us which Delphi version you use.
×