Windows causes FWH crash: msxml3.dll update

Windows causes FWH crash: msxml3.dll update

Postby TimStone » Thu May 30, 2024 6:02 pm

Last night, Microsoft uploaded an update to msxml3.dll and now my programs are erroring out. Specifically, I use the following to send XML texts to a net server.

Code: Select all  Expand view  RUN

Function SendPostToUrl( cUrl, cParams,cContentType,cAuthorization )
    Local oOle,cRet:='',uRet
    default cContentType:="application/x-www-form-urlencoded"
    default cAuthorization:=""
    Try
        oOle := CreateObject( 'MSXML2.XMLHTTP' )
    Catch
        oOle := CreateObject( 'Microsoft.XMLHTTP' )
    End
    oOle:Open( 'POST', cUrl, .f. )
   
    oOle:SetRequestHeader( "Content-Type",cContentType)
    if !empty(cAuthorization)
        oOle:SetRequestHeader( "Authorization",cAuthorization)
    end if
   
    oOle:Send( cParams )
    cRet := oOle:ResponseBody
Return cRet


 


This has worked perfectly for a long time. After the Microsoft update, we get the following error:

Code: Select all  Expand view  RUN

   Error description: (DOS Error -2147352567) WINOLE/1007  The system cannot locate the resource specified.
 (0x800C0005): msxml3.dll
   Args:
     [   1] = C   <carfax-request>
     <license-plate>FRUGAL</license-plate>
     <state>CA</state>
     <vin></vin>
     <product-data-id>38A304F1C16BA41C</product-data-id>
     <location-id>10000</location-id>
</carfax-request>

 


This is now creating a problem for all of my clients. If I turn off the service ( the XML process ), then the application works fine except we can no longer retireve the data.

Does anyone know of a workaround, or have info related to the msxml3.dll current version that we can use to regain SendPostToURL( ) as shared above ? Thank you.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Windows causes FWH crash: msxml3.dll update

Postby Antonio Linares » Fri May 31, 2024 2:11 am

Dear Tim,

You may consider using CURL instead of it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Windows causes FWH crash: msxml3.dll update

Postby TimStone » Fri May 31, 2024 2:21 am

I use CURL on most of my other interfaces so I was thinking about making the change ...

For now I wanted to trap the error, so I put the Open() and next steps into a TRY, and if I get an error, the Catch has an error message but returns a NIL value.

Of course, the company I was interfacing with made some changes on their end and it started working again ... which suggests the error may be the result of the website not being reachable, although that usually gives a different error.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 46 guests