Click here to Skip to main content
15,923,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tabs on side, transparent dialog and disable radiobuttons Pin
Christian Graus5-Jun-01 13:03
protectorChristian Graus5-Jun-01 13:03 
GeneralChange font in Dialog Pin
5-Jun-01 10:54
suss5-Jun-01 10:54 
GeneralRe: Sure. Pin
Masaaki Onishi5-Jun-01 17:51
Masaaki Onishi5-Jun-01 17:51 
GeneralProblem with CMenu Pin
5-Jun-01 9:37
suss5-Jun-01 9:37 
GeneralProblem solved, new problem :) Pin
5-Jun-01 10:05
suss5-Jun-01 10:05 
GeneralRe: Problem solved, new problem :) Pin
5-Jun-01 15:10
suss5-Jun-01 15:10 
Generalproblem using Xalan in a COM component to be used in ASP Pin
joshua williams5-Jun-01 9:25
joshua williams5-Jun-01 9:25 
Generali went and figured out a workaround Pin
joshua williams7-Jun-01 20:38
joshua williams7-Jun-01 20:38 
it turns out that inside of the Xerces code (which Xalan uses as an XML Parser - everyone act surprised) there is use of static function scope variables. These get initialized upon creation and stay around until the process they were created in dies.

the Xalan/Xerces system needs to be initialized/terminated, and in the termination process a number of objects that have been hanging around are deleted... one of them is a mutex object that was _pointed_ to by one of the aforementioned static function scope variables. This static function variable is returned by its function unchanged if it already has a value or with a new address (housing a new mutex object) if it is NULL. the returned handle to the mutex is fed to ::EnterCriticalSection() which will barf if the handle is invalid.

to recap - after you call Terminate() the handle isn't valid and since it is static and ASP doesn't unload dlls immediatly (it just loads that baby up and keeps on getting new handles to instantiations of the objects of it) the pointer to the handle is still around. so the next time that an ASP page is accessed which creates this object an exception is thrown within Xalan and no transformation takes place.

The solution is to Initialize() and Terminate() the Xerces/Xalan system at the process creation/deletion level which I did by adding the appropriate code to DLLMain and removing it from elsewhere. Now things work great and the only thing I have to worry about is the fact that from the time the DLL is loaded into memory by ASP to the time it is finally removed I have the Xerces system up and ready to go (potentially taking up memory....).
GeneralMAPISendMail problem Pin
5-Jun-01 8:51
suss5-Jun-01 8:51 
GeneralRe: MAPISendMail problem Pin
Erik Yuzwa8-Jun-01 7:22
Erik Yuzwa8-Jun-01 7:22 
GeneralCould someone explain the following !!! Pin
Luc Bergeron5-Jun-01 8:40
Luc Bergeron5-Jun-01 8:40 
GeneralCObList Question Pin
Chris Klecker5-Jun-01 5:35
Chris Klecker5-Jun-01 5:35 
GeneralRe: CObList Question Pin
Tomasz Sowinski5-Jun-01 5:58
Tomasz Sowinski5-Jun-01 5:58 
GeneralRe: CObList Question Pin
Chris Klecker5-Jun-01 6:00
Chris Klecker5-Jun-01 6:00 
GeneralRe: CObList Question Pin
Tomasz Sowinski5-Jun-01 6:10
Tomasz Sowinski5-Jun-01 6:10 
GeneralRe: CObList Question Pin
D.D. de Kerf6-Jun-01 20:43
D.D. de Kerf6-Jun-01 20:43 
GeneralSpeed problem with MSSQL server database Pin
Frederico Levesque5-Jun-01 5:03
Frederico Levesque5-Jun-01 5:03 
GeneralRe: Speed problem with MSSQL server database Pin
Carlos Antollini5-Jun-01 5:55
Carlos Antollini5-Jun-01 5:55 
GeneralRe: Speed problem with MSSQL server database Pin
Frederico Levesque5-Jun-01 6:32
Frederico Levesque5-Jun-01 6:32 
GeneralUsing different charsets Pin
5-Jun-01 4:30
suss5-Jun-01 4:30 
GeneralRe: Try to use CRichEditCtrl Pin
Masaaki Onishi5-Jun-01 8:33
Masaaki Onishi5-Jun-01 8:33 
GeneralUpdate tree view Pin
hearties5-Jun-01 3:49
hearties5-Jun-01 3:49 
GeneralRe: Update tree view Pin
Frederico Levesque5-Jun-01 7:50
Frederico Levesque5-Jun-01 7:50 
GeneralRe: Update tree view Pin
hearties5-Jun-01 21:52
hearties5-Jun-01 21:52 
GeneralCHtmlView and Enter key in form Pin
5-Jun-01 3:48
suss5-Jun-01 3:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.