Re: error -461 calling httpc_get_url()
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
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 tom-lnEA/wrDJtNWk0Htik3J/[email protected] [rabbit-semi] a écrit : > 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, [email protected] [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. >> >> Régis. >> > > >