Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
In fact, didn't Microsoft make a terrible mistake by producing a Dictionary component intended for use in scripting scenarios such as ASP, but made it apartment-threaded instead of free-threaded, with the result that a load of sample code they'd put out wouldn't work on IIS?
I remember having no end of trouble with an ASP app where we cached some XSLT stuff in Application - I fixed it by using the MSXML2 FreeThreadedDOMDocument, which (if you read the docs, as I ought to have done) was the reason they introduced that
I would supply a link to the relevant docs, but they seem to have broken the MSDN library to an inconceivable extent at the moment...
Ah, found it (via Google - who would've thunk it?) and suffice to say it's an unbelievably obscure thing to spot even in their own documentation
You need to pick out a scarcely-mentioned point on this page(whilst ignoring the fact that the example they claim to be written in JavaScript has the heading "J#", which is of course their own [failed] take on Java, and has as much to do with JavaScript as a car has to do with a carpet) and this page where you need to read a code example and notice the subtle point that it's using the "FreeThreadedDOMDocument" identifier - a fact not called out anywhere else on the page, but without which your attempt to cache an XSLProcessor in the ASP Application object will fail, even though the XSLProcessor itself is perfectly happy there, was designed to live in places like that, and merely needs the support of its original stylesheet document having been a FreeThreadedDOMDocument rather than a mere DOMDocument
Leaky Abstractions in COM? Never...
We're not worthy.
Drivelling in TPD is not a mental health issue. We're just community blogging, that's all.
Comment