« Return to Thread: [jira] Created: (STOMP-3) Delphi client demo application: connect fails with 'From out of bound.' exception

[jira] Updated: (STOMP-3) Delphi client demo application: connect fails with 'From out of bound.' exception

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View in Thread


     [ http://jira.codehaus.org/browse/STOMP-3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik Brostrom updated STOMP-3:
------------------------------

    Attachment: StompClient.pas.diff

Made a quick fix that seems to work for me.
Modified GetLine to ignore empty Buf and then made CreateFrame to handle empty command-strings.


> Delphi client demo application: connect fails with 'From out of bound.' exception
> ---------------------------------------------------------------------------------
>
>                 Key: STOMP-3
>                 URL: http://jira.codehaus.org/browse/STOMP-3
>             Project: Stomp
>          Issue Type: Bug
>         Environment: Turbo Delphi 2006, ActiveMQ 4.1.1
>            Reporter: Michael Justin
>         Attachments: StompClient.pas.diff
>
>
> The demo application shows an Exception message in the connect procedure.
> The reason is an empty string parameter value passed to the CreateFrame method (as parameter 'Buf'').
> The CreateFrame method is called by procedure TStompClient.OnTransportRead.
> Debugging shows that there is first a correct frame with 'CONNECTED'. Then, after this has been processed, the next frame contains an empty string.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

 « Return to Thread: [jira] Created: (STOMP-3) Delphi client demo application: connect fails with 'From out of bound.' exception