Jump to content

Frederick

uniGUI Subscriber
  • Posts

    608
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Frederick

  1. 2 hours ago, Farshad Mohajeri said:

    Hi,

    Are you using HyperServer in your VM?

    If yes, HyperServer assigns a different port automatically to each Node. That's why you see different ports.

    Yes, I am using HyperServer in the VM.

    Shouldn't UniServerModule.Port display a value that I had assigned during design time and remain so regardless of what HyperServer returns since it is a property that can be assigned a value?

  2. I set UniServerModule's port to 8082 in my application. 

    When I run it in a local machine, reading UniServerModule.Port returns 8082.

    When I run the same application in a VM (VMWare Workstation), UniServerModule.Port returns a different number (16685). Why does this happen?

    Interestingly, I need to use port 8082 in both browser calls to get the application running, i.e. http://localhost:8082. Using http://localhost:16685 in the VM does not work.

    --
    Frederick
    (UniGUI Complete - Professional Edition 1.90.0.1572)
     

  3. I have managed to find out what the problem was.

    In my ServerModule's OnHttpCommand event, I have the following line at the end:-

    Handled:=True;

    The reason is this application is meant to handle callback requests only and the main form does not need to be shown.

    However, this trips up HyperServer and no nodes are created because the main form is not displayed.

    Is it possible to not show the main form for an application running under HyperServer?

  4. hyper_server.exe: 00002AFC: 23:06:52 []:>--------------------------------------------------------------<
    hyper_server.exe: 00002AFC: 23:06:52 [TUniServerModule]:Server First Init.
    hyper_server.exe: 00002AFC: 23:06:52 [TUniServerModule]:Start Path = C:\ict\callback\
    hyper_server.exe: 00002AFC: 23:06:52 [TUniHyperServer]:InitInterceptor
    hyper_server.exe: 00002AFC: 23:06:52 []:Transport.PoolSize: 750
    hyper_server.exe: 00002AFC: 23:07:23 [TUniHyperNode.Terminate]:Node #0 forcefully terminated.
    hyper_server.exe: 00002AFC: 23:07:23 [PostInit]:Failed to initialize node: 0
    hyper_server.exe: 00002AFC: 23:07:23 [TUniServerModule]:Starting HTTP Server on Port: 8085...
    hyper_server.exe: 00002AFC: 23:07:23 [TUniServerModule]:HTTP Server Started on Port: 8085
    hyper_server.exe: 0000201C: 23:07:33 [TUniHyperNode.Terminate]:Node #1 forcefully terminated.
    hyper_server.exe: 0000201C: 23:07:33 [TUniHyperNodeManagerWorker]:Failed to initialize node: 1
    hyper_server.exe: 0000201C: 23:08:28 [TUniHyperNode.Terminate]:Node #0 forcefully terminated.
    hyper_server.exe: 0000201C: 23:08:28 [TUniHyperNodeManagerWorker]:Failed to initialize node: 0

    I can run my standalone application directly from the command line and it works OK. However, when I run it via Hyperserver, it won't start and I get multiple "failed to initialize node" errors.

    I have configured Hyperserver for several applications before and this is the first time I have encountered these errors.

    What should I be looking for to resolve this? Is there a limit to the number of Hyperserver instances that can run at the same time?

    --
    Frederick
    (UniGUI Complete - Professional Edition 1.90.0.1568)
     

  5. I am running HyperServer in IIS 10 and I have a site set up with an application under it. The application is called APP.EXE and is configured to run in port 8082.

    There are three files for the first application; APP.CFG, APP.DLL and APP.EXE.

    The following is a section of APP.CFG:-

    [hyper_server]
    binary_name=app.exe
    initial_nodes=2
    max_nodes=8
    max_sessions=0
    sessions_per_nodes=0
    prompt_login=1
    persistent_node_zero=0
    port=8082
    url_path=
    url_referer=

    To run this application, I type https://mysite.com/app and this runs OK.

    Based on the documentation about HyperServer applications, I am trying to get a second application (HELLO.EXE) to run from the same directory as APP.EXE. HELLO.EXE is set up to run in port 8077.

    After I added the following lines in the CFG file of the HyperServer,

    [application-0]
    enabled=1
    alias=hello
    binary_name=hello.exe
    max_nodes=1

    I tried to start HELLO.EXE by typing https://mysite.com/app/hello but I am getting a 404 error.

    What am I missing here?

    --
    Frederick
    (UniGUI Complete - Professional Edition 1.90.0.1566)
     

  6. When I receive a parameter and UniMainModule encounters it, I set the Handled to True, thereby bypassing the login form.

    However, the parameter is meant to show a form that is not the main form. How do I prevent the main form from showing and instead, call another form? VCL has the Application.ShowMainForm:=False. Does UniGUI have an equivalent property?

    1.   http://myapp.com?showsubform=yes
    2.   UniMainModule -> Handled:=True; (Login form bypassed)
    3.   MainForm shows (I want this form hidden)
    4.   SubForm is displayed.

    --
    Frederick
    (UniGUI Complete - Professional Edition 1.90.0.1565)
     

  7. Let's say I have the following tree view structure:-

    Main Node 1
       - Sub Node 11
       - Sub Node 12
    Main Node 2
       - Sub Node 21
       - Sub Node 22

    Currently, when I click main node 1, it opens to show the sub nodes 11 and 12. When I click main node 2, it also opens to show sub nodes 21 and 22. However, main node 1 remains opened.

    How do I, when I click main node 2, cause main node 1 to close? In other words, there can only be one main node opened at any one time.

    --
    Frederick
    (UniGUI Complete - Professional Edition 1.90.0.1565)
     

  8. 2 hours ago, d.bernaert said:

    This can also be done easily with the following configuration:

    Alignment: client

    Form layout: border

    Upper panel: region: north

    Mid panel: region: center

    Bottom panel: region south

    Does using regions dispense the need to specify the height and width in the LayoutConfig property?

  9. 7 hours ago, andyhill said:

    Put up test code and image of desired result and I will look at it for you

    Thanks for the offer, Andy. I think that I managed to figure out the basic steps to get the layout I want, with input from Abaksoft as well. The only thing I am trying to wrap my head around is the Flex property. I will study this more later.

    My basic design layout is attached.

  10. 8 minutes ago, albertovesx said:

    "I can't get panel 3 to be at the bottom"

    for that use CreateOrder property

    Unfortunately, setting this property does not give me the effect I want.

    I've decided to use uniAlignmentServer instead of uniAlignmentClient and use the Align properties for each panel to get the layout I want as I am short of time.

    Thanks.

  11. I have the following main form (Alignment Control = uniAlignmentClient) where my form's layout is "Fit", a container panel where the layout is "Vbox" and 3 TUniPanels where their properties are in the caption. 

    Panel 1's height is fixed and is supposed to be aligned to the top while Panel 3's height is also fixed and aligned to the bottom and Panel 2's height is supposed to be dynamic between panels 1 and 3..

    As you can see, after running the project, I can't get panel 3 to be at the bottom and panel 2's height to be dynamic. Furthermore, when I resize the web browser, the panels do not resize horizontally to fit.

    What am I missing here?

    --
    Frederick
    (UniGUI Complete - Professional Edition 1.90.0.1565)

    layout2.png

    layout2run.png

  12. My TUniServerModule's SessionTimeOut is set at 600000000 and I still get the error in the attached screenshot when I am using the application. It is random.

    How do I solve this problem?

    --
    Frederick
    (UniGUI Complete - Professional Edition 1.90.0.1562)
     

    sessiontimeout.png

×
×
  • Create New...