Jump to content

ChrisChuah

Members
  • Content Count

    108
  • Joined

  • Last visited

Posts posted by ChrisChuah


  1. I have re-downloaded the PAServer for Delphi 11.1 on MacOS and updated the XCode to 15.2

    However, when i tried to run the mac app in debug mode, it gave me this error

     

    dyld[9049]: Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python

      Referenced from: <06D97208-31C1-324C-94F5-B231E630BF31> /Applications/PAServer-22.0_11.1.app/Contents/MacOS/lldb-x86_64/lib/liblldb.3.8.0.dylib

      Reason: tried: '/System/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file, not in dyld cache)

     

    Is there an updated PAserver for 11.1 to fix this python link problem.

    The python frame work is found in /Library/Frameworks/Python.framework/Versions/2.7/Python rather than the /System library.

    I cannot create a link within the /System library as it is forbidden by Apple. 

     

    Please help

     

    regards

    chris

     


  2. it seems that if i put a web browser on Form2 and Form2 is run-time called to be created, then there will be an access violation on RecreateBrowser function called.

    The way to go about it is to create a browser onCreate form2 function and insert the webbrowser component into it

    Not sure if anyone is having this problem


  3. Hi

    Is there a function in Indy whereby i could get the Mac address of the interface card?

    Or is there any function in Delphi whereby i could obtain the MAC address of the NIC card for FMX app?

     

    regards

    chris


  4. Oh Yes, now the browser can crash my application when i use a Navigate function. 

    I place a try except block on the navigate function but somehow there is no exception error.

    Where can i get any information about the crash?

     

    regards

    chris


  5. On 11/15/2023 at 12:08 PM, Brian Evans said:

    The dbxora.dll and midas.dll files are available in both the 32-bit and 64-bit redistributable directories.  

     

    For example for Delphi 12 the redist directories for Windows are:  

    C:\Program Files (x86)\Embarcadero\Studio\23.0\Redist\win32

    C:\Program Files (x86)\Embarcadero\Studio\23.0\Redist\win64

    HI 

    By right, the delphi 64 bits applications that uses Oracle DBExpress should use the dbxora.dll and midas.dll.

    However, when i deployed using those dll, my application would not be able to connect to the oracle database.

    Instead i have to add the dbexpora.dll which is 32bit dll that I have been using in Delphi 6.

    Once i added that dbexpora.dll file into my application folder, my application is able to connect to the Oracle database.

     

    Anyone has any idea why the dbexpora.dll is still being used?

    Maybe next time i should ditch DBExpress and move on to other drivers instead. sigh

     

    regards

    chris

     


  6. Hi

    When i use the deployment Featured Files for 64 bit application, the DBExpress Oracle Driver will use dbxora.dll and MIDAS Library will use midas.dll.

    However, when i copied these 2 files together with my exe application and run on a newly installed Win 10 Pro pc, the application would not connect to the database.

    I have already set the Net Configuration for Oracle Client and it is able to connect to the Oracle database server.

    However, previously when i deployed my 32 bit application using Delphi 6, i would use dbexpora.dll and when i add this file to the newly installed Win 10 Pro pc, my application is able to connect to the database.

    Why is this file dbexpora.dll used? Its a 32 bit dll if i am not wrong.

    Is there something that i did not configure correctly?

     

    regards

    chris

    Screenshot 2023-11-15 at 11.57.02 AM.png

    Screenshot 2023-11-15 at 11.58.01 AM.png


  7. Hi 

    Last time, since Delphi 6, i managed to download an VNCX.dll from internet and i was able to embed it into my Delphi 6 application.

    Now, i tried to import this same component into Delphi 11, Delphi 11 managed to convert into the TLB files and was able to compile it and add to the Palette.

    When i create a new Windows VCL app and add that VNC ActiveX component into the form, Delphi 11 will crash.

    Is there a way to find out why Delphi 11 crashed?

     

    regards

    chris

     


  8. Hi Remy

    The data sent to 2 ports are different. The server was designed in such a way that Port1 is sending Command and Control data while Port2 is used for sending and receiving Configuration data.

    That was how the server was implemented long time ago.

    Since both ports will be getting data from the server at any 1 time so i cant just use 1 client to send and receive from 2 different ports at the same time isnt it?

    Am i able to use 1 idTCPClient port to connect to 2 ports? once connected, both ports can receive data at the same time?

    please advise

     

    regards

    chris

     


  9. Hi Remy

     

    Now i m having another problem

    In my app, i have 2 idTCPClient sockets that connect to 2 different ports of same server application.

    When one of the port or idTCPClient (Client A) disconnect, it should disconnect the other idTCPClient (Client B) as there may be some issues with the server app.

    When reconnecting the idTCPClient B to the server, whenever i try to use ClientB.IOHandler.Read, it will give me an exception like this

    -----

    <07/11/2023 10:02:31> IP to Connect to CM: 172.20.11.9:16194
    <07/11/2023 10:02:31> Connecting..CM User TCP: 172.20.11.9:16197 Own IP: 172.20.13.201
    <07/11/2023 10:02:36> Error in Thread Run. Type: EIdConnClosedGracefully Msg: Connection Closed Gracefully.
    -----

    When disconnecting idTCPClient B, should i release the IOHandler? 

    If not how can i handle this exception as I am using a IdThreadComponent to read the IdTCPClient B socket for messages

     

    regards

    chris

     


  10. Hi

    Is there a way to use Indy TCP Client to have a synchronous method whereby 

    IdTCPClient1.Connect;

    IdTCPClient1.Send();

    IdTCPClient1.Disconnect

     

    rather than to wait for OnConnect event to send the message and followed by Disconnect as I would need to put the buffer on queue so that it will be written to the socket onConnect event

    The reason for doing this is that i need to send multiple message to different TCP servers and they will accept one command and need to disconnect after sending.

    What would be the best way to implement this?

     

    please advise

    regards

    chris

     


  11. Hi

    I have another question.

    For Windows x86 and x64, we will need to copy the webview2load.dll to the app directory.

    How about linux? what are the files that i need to copy or attach to my app directory?

    The windows webview2load.dll is found in C:\Program Files (x86)\Embarcadero\Studio\22.0\Redist\win64 for 64bit deployment and C:\Program Files (x86)\Embarcadero\Studio\22.0\Redist\win32 for 32bit deployment.

    Do i attached the entire C:\Program Files (x86)\Embarcadero\Studio\22.0\Redist\linux64 directory files when i deploy for linux when using TWebBrowser in Linux?

     

    please advise

     

    regards

    chris

     


  12. hi, 

    i am using the Twebbrowser component to load a page which i can see it from microsoft edge and chrome

    but it was not able to be displayed on the TWebbrowser.

    Any ideas on how to debug it. i think its still using IE but i am trying to use EdgeIfAvailable but Edge engine is not found if i set the EdgeOnly option

    where can i find the webview2loader.dll? i downloaded the Evergreen standalone as well as the Fixed version. Expanded the Fixed version but cant find this file

     

    regards

    chris

×