Article View: borland.public.cppbuilder.nativeapi
Article #11099Re: access violation on InternetStatusCallback
From: Remy Lebeau (TeamB)
Date: Fri, 27 Feb 2004 07:41
Date: Fri, 27 Feb 2004 07:41
14 lines
1440 bytes
1440 bytes
"ScOe" <cbinders@hotmail.com> wrote in message news:403e6655@newsgroups.borland.com... > i receive access violation on cpContext->szMemo ... I do not see you ever calling InternetConnect(). The dwContext parameter of the callback function is not valid until you call InternetConnect(), since InternetConnect() is the function that associates a user-defined context with the HINTERNET object. Your callback is never testing the dwContext parameter to make sure it actually contains a valid value before using it. Gambit
Technical Details
Message-ID:
<403ef2ad$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<403e6655@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,4610331582357ae2 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-26 23:39:51 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <403e6655@newsgroups.borland.com> Subject: Re: access violation on InternetStatusCallback Date: Thu, 26 Feb 2004 23:41:20 -0800 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <403ef2ad$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077867181 67.22.138.253 (26 Feb 2004 23:33:01 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail