User Tag List

Results 1 to 2 of 2

Thread: GET object variant

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GET object variant

    The GET object works, but it is adding a CR+LF to the end of the response.

    result += new string(ret);

    This line in CRunGet.cs is mucking up my length check on the return. and is not present on GET for Windows and iOS.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    I see what's wrong. It should not add a line break after the last string. You can change the heart of the function with :

    using (StreamReader lector = new StreamReader(s))
    {
    Char[] ret={(Char)13, (Char)10};
    bool bFlag = (lector.Peek() >= 0);
    while (bFlag)
    {
    result += lector.ReadLine();
    bFlag = (lector.Peek() >= 0);
    if (!bFlag)
    break;
    result += new string(ret);
    }
    }

Similar Threads

  1. [new variant of BUG] Samples play intermittently in Beta 27
    By Tuna in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 23rd April 2012, 06:52 PM
  2. Variant query
    By Phi in forum Lacewing
    Replies: 2
    Last Post: 26th March 2012, 10:33 PM
  3. Better Smoke for variant
    By Pkeod in forum File Archive
    Replies: 4
    Last Post: 20th December 2009, 06:43 PM
  4. Replace sub string for variant
    By nivram in forum File Archive
    Replies: 3
    Last Post: 14th December 2009, 03:01 PM
  5. Multiple Object Example for Variant
    By Eliyahu in forum File Archive
    Replies: 0
    Last Post: 29th November 2009, 03:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •