[CONTAINERNET-133] app.configの設定読込時、「conime.exe」が起動しないようにする Created: 2009-10-31  Updated: 2009-11-08  Due: 2009-10-31  Resolved: 2009-11-08

Status: Resolved
Project: S2Container.NET
Component/s: Quill
Affects Version/s: 1.3.17
Fix Version/s: 1.3.18

Type: Bug Priority: Minor
Reporter: koyak Assignee: koyak
Resolution: Fixed Votes: 0
Labels: None


 Description   

不要なプロセス「conime.exe」を起動させないようにする。

conime.exeは基本的にコマンドプロンプトで日本語入力可能にするための機能として
コマンドプロンプト(cmd.exe)の起動時に立ち上がり、
cmd.exeが終了してもプロセス上に残り続ける。
しかもcmd.exeの起動/終了の度にメモリを食い、
(特定のディレクトリをロックし続けることもある!?)
参考:
http://wiki.webcom-corp.co.jp/index.php/WN0024
http://support.microsoft.com/kb/814379/JA/
http://d.hatena.ne.jp/NyaRuRu/20070809/p1

Seasar.NETの場合、
アプリケーション構成ファイル(app.config)に書かれた設定を読むときに
Seasar、Quill共にXmlSerializerを使用して読み込んでいる。

このXmlSerializerがXML解析時にcsc.exeを起動し、
その際にconime.exeを立ち上げてしまっているため、
XmlSerializerを使わずに設定を読み込むようにしたい。

参考:
http://support.microsoft.com/kb/903204/ja

log4netでもXmlSerializerを使わず、
XmlElement、XmlNodeからセクション名、属性名を指定する形で
設定情報を読み込んでいる。

参考:
log4net.Repository.Hierarchy.XmlHierarchyConfigurator.cs



 Comments   
Comment by koyak [ 2009-11-01 ]

Seasar.Framework.Xml.S2SectionHandler#Create
Seasar.Quill.Xml.QuillSectionHandler
メソッド内のXmlSerializerを使用している処理を
XmlNodeからセクション名、属性名を直接指定して戻り値を
組み立てる形に修正。

XmlSerizlizerを使わない場合、
Seasar.Framework.Xml.S2Section
Seasar.Quill.Xml.QuillSection
の属性設定(XmlRootAttribute他)は不要となるので削除する予定。

Generated at Mon Dec 15 07:43:57 JST 2025 using Jira 10.6.1#10060001-sha1:a6461e220f274b29ced7ac9295492f2465fe5ef5.