Reply by "Sco...@shdesigns.org [rabbit-semi]"●May 14, 20142014-05-14
On 5/14/2014 2:31 PM, "Ris Schmidt (free)" R...@free.fr
[rabbit-semi] wrote: > Thank you for these informations. I will proceed to
further
> investigations using what you suggest. I'm sure I'm the guilty
for
> this crash but it take a long time to debug my simple program. Thank
> you again.
According to lib\Rabbit4000\BIOSLIB\errors.lib
/*461*/ "Nameserver resolve timed out",
--
------
Scott G. Henion, Consultant
Web site: http://SHDesigns.org
------
Reply by ●May 14, 20142014-05-14
Thank you for these informations. I will proceed to further investigations using
what you suggest. I'm sure I'm the guilty for this crash but it take a
long time to debug my simple program. Thank you again.
Le 14 mai 2014 20:26, Tom Collins t...@tomlogic.com [rabbit-semi] a rit :
> Based on the documentation, it should be one of the
following:
> 0: Success
> -EINVAL: Error parsing URL
> -E2BIG: URL is too big to parse. Increase URL_MAX_BUFFER_SIZE to handle larger
URLs.
> -NETERR_DNSERROR: Can't resolve hostname.
>
> One of the error libraries will define those macros so you can figure out
which is -461.
>
> Are you using the latest version of Dynamic C?
>
> I guess it's possible that the URL you pass to the function causes a
buffer overflow or some other issue to crash your program, but it's more
likely that you're doing something after the function call to cause the
crash.
>
> If you run the program in the debugger, you can set a breakpoint on that
function call and step into the library to see what's happening in the
code. You might have to define a macro in your project to enable debug mode for
that library.
>
> -Tom
> On May 14, 2014, at 11:07 AM, R...@free.fr [rabbit-semi] wrote:
>>
>> Hi,
>>
>> Using the hhtp client available in the HTTP library on a RCM 5600W, I have an
application that send a http request to a site and retrieve a page (analyse,
parse and do what it has to do with) and everything seems to work ..... until I
get error -461 calling httpc_get_url().
>> It stops my application and the RCM 5600W module seems stopped since WIFI is
disconnectedand no more activity is detected on the board.
>> I tried the standalone configuration (RUN mode) and also (PROGRAM mode) by
USB cable.
>> Ive the same pb on both.
>>
>> Ive not found any info on error -461 in documentation (maybe Ive not looked
at the good place).
>>
>> If you can help me I thank you.
>>
>> Ris.
>
Reply by "Tom...@tomlogic.com [rabbit-semi]"●May 14, 20142014-05-14
Based on the documentation, it should be one of the following:
0: Success
-EINVAL: Error parsing URL
-E2BIG: URL is too big to parse. Increase URL_MAX_BUFFER_SIZE to handle larger
URLs.
-NETERR_DNSERROR: Can't resolve hostname.
One of the error libraries will define those macros so you can figure out which
is -461.
Are you using the latest version of Dynamic C?
I guess it's possible that the URL you pass to the function causes a buffer
overflow or some other issue to crash your program, but it's more likely
that you're doing something after the function call to cause the crash.
If you run the program in the debugger, you can set a breakpoint on that
function call and step into the library to see what's happening in the
code. You might have to define a macro in your project to enable debug mode for
that library.
-Tom
On May 14, 2014, at 11:07 AM, R...@free.fr [rabbit-semi] wrote: > Hi,
>
> Using the hhtp client available in the HTTP library on a RCM 5600W, I have an
application that send a http request to a site and retrieve a page (analyse,
parse and do what it has to do with) and everything seems to work ..... until I
get error -461 calling httpc_get_url().
> It stops my application and the RCM 5600W module seems stopped since WIFI is
disconnectedand no more activity is detected on the board.
> I tried the standalone configuration (RUN mode) and also (PROGRAM mode) by USB
cable.
> Ive the same pb on both.
>
> Ive not found any info on error -461 in documentation (maybe Ive not looked at
the good place).
>
> If you can help me I thank you.
>
> Ris.
> .
>
Reply by "Reg...@free.fr [rabbit-semi]"●May 14, 20142014-05-14
Hi,
Using the hhtp client available in the HTTP library on a RCM 5600W, I have an
application that send a http request to a site and retrieve a page (analyse,
parse and do what it has to do with) and everything seems to work ..... until I
get error -461 calling httpc_get_url().
It stops my application and the RCM 5600W module seems stopped since WIFI is
disconnectedand no more activity is detected on the board.
I tried the standalone configuration (RUN mode) and also (PROGRAM mode) by USB
cable.
Ive the same pb on both.
Ive not found any info on error -461 in documentation (maybe Ive not looked at
the good place).