Intrafoundation Software
Making Atomic Warfare Fun Again
News & Forums Active Projects Queued Projects | War & Politics God Cryptography Operating Systems Game Development | Writings Poetry Film Making Wisdom | ColdFusion ASP COM Objects Javascript Web Design Java | Photography Raytracing DOS Software

| Need a shoulder to cry on while trying to convince Windows to properly work with our software? Just want to chat about something related to the site? Feel free to use the forums slash news slash blog. (Unsolicited commercial spam will be deleted, obviously.) | Looking for something?

This is thread 197. The complete list of threads is available on the main forums page.

Subject: CFX_IIS ASDI CFMX fix Author: Jason Nokes Date/Time: 6/26/2003 3:38:58 PM (197.0) From Macromedia: The problem lies in the cfx code itself. The cfx doesn`t call CoInitialize(NULL) to init the ADSI COM object. This code worked ok on the native langauge (c++) based CF platform (<=CF5), but now that we`re on Java we don`t get the init call for free. If you add the CoInitialize() and CoUninitialize() you`ll get a little further. There is a MS KB article covering this: http://support.microsoft.com/?kbid=171724 It looks like this project needs some updating to run from the Java platform. Luckily the source is available from Intrafoundation. void ProcessTagRequest( CCFXRequest* pRequest ) { try { ::CoInitialize(NULL); //<-------line 6208 inside the processTagReqest seconds.Format("%u",span.GetTotalSeconds()); pRequest->SetVariable( "IISSeconds", seconds); ::CoUninitialize(); //<---------line 6334 before the function closes.
Subject: RE:CFX_IIS ASDI CFMX fix Author: Lewis Sellers Date/Time: 6/28/2003 1:31:44 AM (198.197) That`s what I love about open-source -- it lets other people find your mistakes. :) As I mentioned to someone from Macromedia it was a surprise to me the code didn`t call coinit. It was in there at one time. It probably got misplaced while doing copy/pastes in the haste to release the project as open-source when I had to drop it because of an exclusivity clause with a new job a few years back. At any rate, although it doesn`t SAY it`s different, the version of IHTK downloadable NOW was recompiled with the fix today. If I have the time this weekend I might even change the documention to reflect this. :) --min

| REPLY
--- | ---
Author: |
Subject: |
Your Message: |
Email: (optional) |

`(Note: For safety all HTML in your message text may be printed exactly as you typed it.)`
top