Project Not Responding

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by Maurits Roos, May 22, 2011.

  1. Maurits Roos

    Maurits Roos

    Joined:
    Feb 9, 2005
    Messages:
    24
    Likes Received:
    0
    We have a homegate project that was working well but we made some small changes and the project compiled.

    The changes were:
    1. added a new function and a new procedure
    2. changed one module in 4-6 places to call the new function
    3. tested the changes and it worked fine.
    4. we ran the logic and it worked well
    5. we then made the changes through the rest of the project
    6. running the logic now hangs; and we cannot get back to the code as the auto-running of the logic when starting homegate hangs homegate with a 'not responding'. This is interesting as there is nothing happening in the logic as we have disconnected the hardware.


    Code sample of what was done:

    //new function:
    function IsInString(firsthalf, secondhalf: integer; compareTo: String): boolean;
    begin

    //build a string based on a case statement
    // and put the string in to global variable sBulid;
    buildString(firsthalf, secondhalf);
    IsInString := pos(sBuild, compareTo) > 0;
    end;


    //function call is equivalent to
    //once s = '@MAIN:pWR=On' then
    //where s is the string read in the ReadSerial elsewhere in the project

    once IsInString(1, 203, readStr) then begin .....


    We would like some suggestions on
    1. How to get homegate to start without auto running the logic
    2. what may be causing the project to hang on starting the project

    thanks,
    Maurits
     
    Maurits Roos, May 22, 2011
    #1
  2. Maurits Roos

    Matty

    Joined:
    Oct 15, 2004
    Messages:
    131
    Likes Received:
    0
    Hi Maurits Roos,

    1. There isn't any way to get homegate to start without running logic.
    2. I'm unsure why the project would be hanging on startup. However since you say you changed a bunch of logic and now the project hangs I'd start looking at the logic. If you send the project into tech support and ask them to forward it onto me I'll have a look at the cause.

    Regards,

    Matty.
     
    Matty, May 24, 2011
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.