login about faq

I'm seeing multiple "First-chance" exceptions as soon as I call CkHttpW::quickGetStr as shown below:

First-chance exception at 0x7511C41F (KernelBase.dll) in GRIB2Test.exe: 0x000006BA: The RPC server is unavailable.

The routine appears to work just fine though and returns the HTTP response string. Is there a way to avoid causing the First-chance exceptions in the first place?

Essentially all I'm doing is unlocking the CkHttp component then calling the following:

CkHttpW http;

const wchar_t * html;

html = http.quickGetStr(_T("http://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/"));

That's when the First-chance exceptions pop up.

Thanks, Phil

asked Feb 11 '14 at 16:39

pdm1999's gravatar image

pdm1999
1244


12next page »

I would recommend first testing with the pre-release of v9.5.0. Please indicate your operating system, VC++ version, etc., and I will post a download link here..

link

answered Feb 14 '14 at 08:45

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

I'm using VC++ 2012 on Win7-64 system with Chilkat 9.42 pre-release (9.41 had a bug in CkFtp2 that 9.42 fixed).

(Feb 14 '14 at 10:00) pdm1999

I'm using VC++ 2012 on Win7-64 system with Chilkat 9.42 pre-release (9.41 had a bug in CkFtp2 that 9.42 fixed). I've also noticed that CkHttpProgress::PercentDone is not being called in the 9.42 pre-release it appears. If you could get me a link for the 9.50 pre-release, I'd be glad to try it.

Thanks, Phil

link

answered Feb 18 '14 at 19:11

pdm1999's gravatar image

pdm1999
1244

link

answered Feb 18 '14 at 22:03

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

I tried the pre-release 9.5.0 x86 library and it did not help. I'm not really doing much so it should be easy for you to reproduce. After unlocking CkHttp, I just do this:

CkHttpW http;

const wchar_t * html;

http.put_FetchFromCache(FALSE); // Do NOT use cache

html = http.quickGetStr(_T("http://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/"));

Immediately after the quickGetStr call, I get the following in the Output window (my app is BalloonTest.exe):

First-chance exception at 0x7509C41F (KernelBase.dll) in BalloonTest.exe: 0x000006BA: The RPC server is unavailable.

First-chance exception at 0x7509C41F (KernelBase.dll) in BalloonTest.exe: 0x000006BA: The RPC server is unavailable.

'BalloonTest.exe' (Win32): Loaded 'C:WindowsSysWOW64rasadhlp.dll'. Cannot find or open the PDB file.

First-chance exception at 0x7509C41F (KernelBase.dll) in BalloonTest.exe: 0x000006BA: The RPC server is unavailable.

First-chance exception at 0x7509C41F (KernelBase.dll) in BalloonTest.exe: 0x000006BA: The RPC server is unavailable.

'BalloonTest.exe' (Win32): Loaded 'C:WindowsSysWOW64FWPUCLNT.DLL'. Cannot find or open the PDB file.

Is there anything else you'd like me to try?

Phil

link

answered Feb 19 '14 at 11:27

pdm1999's gravatar image

pdm1999
1244

Thanks, I'll give it a try..

link

answered Feb 19 '14 at 11:29

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

I'll just toss out another thing I see when downloading a file and showing the download progress using CkHttpProgressW. PercentDone() is never called. I saw in another post that you all were going to go through all the PercentDone routines for everything to verify them so I just wanted to let you know that with 9.50 pre-release it seems it's still not being called for CkHttpProgressW.

Phil

link

answered Feb 19 '14 at 11:35

pdm1999's gravatar image

pdm1999
1244

I did not get a crash. Here's my test code:

bool HttpTesting::testWideCharGet(void)
    {
    CkHttpW http;

const wchar_t * html;

http.put_FetchFromCache(false); // Do NOT use cache

html = http.quickGetStr((L"http://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/"));

CkString lastErr;
http.get_LastErrorText(lastErr);

printf("%s\n",lastErr.getString());

return true;
}

Here is my LastErrorText:

ChilkatLog:
  QuickGetStr:
    DllDate: Feb 19 2014
    ChilkatVersion: 9.5.0.14
    UnlockPrefix: UNTTSTHttp
    Username: CHILKAT13:Matt
    Architecture: Little Endian; 32-bit
    Language: Visual C++ 11.0 (32-bit)
    VerboseLogging: 0
    httpRequestStr:
      a_quickReq:
        quickHttpRequest:
          httpVerb: GET
          url: http://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/
          buildQuickRequest:
            genStartLine:
              startLine: GET /pub/data/nccf/com/gfs/prod/ HTTP/1.1
            --genStartLine
            addCookies:
              Not auto-adding cookies.
            --addCookies
          --buildQuickRequest
          openHttpConnection:
            Opening connection to HTTP server.
            hostname: nomads.ncep.noaa.gov
            port: 80
            ssl: 0
            connectElapsedMs: 235
            HTTP connection succeeded.
          --openHttpConnection
          sendRequestHeader:
            sendHeaderElapsedMs: 0
          --sendRequestHeader
          statusCode: 200
          statusText: OK
          readResponseBody:
            contentLength: 12792
          --readResponseBody
        --quickHttpRequest
      --a_quickReq
      convertResponseBodyToUtf8:
        responseBodySize: 12792
        responseContentType: text/html;charset=ISO-8859-1
        responseHdrCharset: ISO-8859-1
        Converting to utf-8 charset.
        fromCodePage: 28591
      --convertResponseBodyToUtf8
    --httpRequestStr
    Success.
  --QuickGetStr
--ChilkatLog

link

answered Feb 19 '14 at 11:37

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

It's not "crashing" for me. It just throws the First-chance exception. Everything seems to function just fine. I added the get_LastErrorText and this is what it had:

ChilkatLog:

QuickGetStr:

DllDate: Feb 18 2014
ChilkatVersion: 9.5.0.14
UnlockPrefix: npirasHttp
Username: DELL-XPS:Phil
Architecture: Little Endian; 32-bit
Language: Visual C++ 11.0 (32-bit)
VerboseLogging: 0
httpRequestStr:
  a_quickReq:
    quickHttpRequest:
      httpVerb: GET
      url: http://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/
      buildQuickRequest:
        genStartLine:
          startLine: GET /pub/data/nccf/com/gfs/prod/ HTTP/1.1
        --genStartLine
        addCookies:
          Not auto-adding cookies.
        --addCookies
      --buildQuickRequest
      openHttpConnection:
        Opening connection to HTTP server.
        hostname: nomads.ncep.noaa.gov
        port: 80
        ssl: 0
        connectElapsedMs: 234
        HTTP connection succeeded.
      --openHttpConnection
      sendRequestHeader:
        sendHeaderElapsedMs: 0

First-chance exceptions are just indications that something isn't right but it doesn't necessarily cause a crash. But it's something that shouldn't be happening. Is there something else you can think of that maybe is conflicting with the CkLibs that I need to check?

link

answered Feb 19 '14 at 11:46

pdm1999's gravatar image

pdm1999
1244

I do not get any First-Chance exceptions either.

link

answered Feb 19 '14 at 11:59

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Google the error message, without the specific words that wouldn't match anything. For example, Google this:

First-chance exception at (KernelBase.dll) in 0x000006BA: The RPC server is unavailable.

link

answered Feb 19 '14 at 12:01

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×9
×1

Asked: Feb 11 '14 at 16:39

Seen: 1,654 times

Last updated: Feb 19 '14 at 12:55

powered by OSQA