<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The problem with osis2mod is that createModule does not like a path that does not already exist.<div><br></div><div>I was thinking that FileMgr should be used to test and create the directory if needed. I saw that there was an FileMgr::isDirectory(path) and that there was a FileMgr::createParent(path). The latter takes a path ending in / or \ and recursively will test and create the directory.</div><div><br></div><div>I can add these to osis2mod, but it seems that the proper location is in the createModule methods. Is there a reason that we require the caller of osis2mod (and the other *2mod) to ensure that the directory exists? It appears that on Windows that osis2mod crashes if the directory does not exist. It at least should exit gracefully.</div><div><br></div><div>In Him,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>DM</div><div><br><div><div>On Jul 16, 2013, at 8:32 AM, DM Smith &lt;<a href="mailto:dmsmith@crosswire.org">dmsmith@crosswire.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="auto"><div>Yes we should test directory existence.&nbsp;<br><br>In Him,</div><div>DM&nbsp;</div><div><br>On Jul 16, 2013, at 6:46 AM, Marjan Savli &lt;<a href="mailto:marjan.savli@gmail.com">marjan.savli@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div>Hello, <br><br>after few days more I find simple solution for&nbsp; osis2mod crash<br>&nbsp;&nbsp; (osis2mod.exe sword\modules\texts\ztext\kjva_sloeng\ kjv_slo_osis_sword.xml -v KJVA -z)<br><br></div><div style="margin-left:40px">

I needed to create subdirectiories which I accidentally deleted days ago. So I included in my script these lines.<br><br>====<br>d:<br>chdir d:\<br>mkdir \temp\sword\sword\modules\texts\ztext\kjva_sloeng<br>mkdir \temp\sword\sword\modules\texts\ztext\kjva_slo<br>

=====<br></div><div><br>And question:<br>Is this hard to implement into osis2mod.exe, that instead of crash report that directory is missing?<br><br><br>&nbsp; &nbsp; &nbsp;&nbsp; ------------&nbsp;&nbsp; Marjan&nbsp;&nbsp; ----------<br>
&nbsp; &nbsp; &nbsp; &nbsp; tel:&nbsp; &nbsp; <a href="tel:%2B386%20%280%294%205121%20377" value="+38645121377" target="_blank">+386 (0)4 5121 377</a><br>&nbsp; &nbsp; &nbsp;&nbsp; --------------------------------------</div>
<div dir="rtl"><br></div><div><br><div class="gmail_quote">2013/7/12 Marjan Savli <span dir="ltr">&lt;<a href="mailto:marjan.savli@gmail.com" target="_blank">marjan.savli@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<div>Hello<br><br>I tried to use osis2mod to convert a OSISBible format text to SWORD 
modules, but I got error message: osis2mod.exe has encountered a problem
 and needs to close. <br>I am using Windows XP SP3, osis2mod 2671. I tried also on Windows 7, but it was the same. First I tried with different tried msvcr100.dll, but it was the same. At last I decided, that this is probably my fault in .xml file.<br>



<br>But two month ago this conversion was done without any problems. But then something happens. :-))<br><br>This is my .bat file:<br><br>C:\Temp\sword&gt;osis2mod.exe sword\modules\texts\ztext\kjva_sloeng\ kjv_slo_osis_sword.xml -v KJVA -z<br>




You are running osis2mod: $Rev: 2671 $<br><br><div>Here ( <a href="https://sites.google.com/site/marjansavli/" target="_blank">https://sites.google.com/site/marjansavli/</a> ) is my <br>&nbsp;&nbsp; - picture of crash&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; osis2mod_crash.JPG&nbsp;&nbsp; (147k)<br>



&nbsp;&nbsp; - osis XML file&nbsp;&nbsp; kjv_slo_osis_sword.zip&nbsp;&nbsp;&nbsp;&nbsp; (476k)<br>&nbsp;&nbsp; - working 2 sword modules from two months ago&nbsp;&nbsp;&nbsp;&nbsp; kjva_slo_sword.zip&nbsp; (3629k)<br><br><br>I read also this thread <a href="http://sword-dev.350566.n4.nabble.com/Using-osis2mod-td356887.html" target="_blank">http://sword-dev.350566.n4.nabble.com/Using-osis2mod-td356887.html</a><br>



And I made extract from my xml file and here are all my osisID tags<br><br>osisID="1Cor<br>osisID="1Cor.c<br>osisID="1John<br>osisID="1Pet<br>osisID="1Thess<br>osisID="1Thess.c<br>osisID="1Tim<br>



osisID="1Tim.c<br>osisID="2Cor<br>osisID="2Cor.c<br>osisID="2John<br>osisID="2Pet<br>osisID="2Pet <br>osisID="2Thess<br>osisID="2Thess.c<br>osisID="2Tim<br>osisID="2Tim.c<br>



osisID="3John<br>osisID="Acts<br>osisID="Col<br>osisID="Col.c<br>osisID="Eph<br>osisID="Eph.c<br>osisID="Gal<br>osisID="Gal.c<br>osisID="Heb<br>osisID="Heb.c<br>osisID="Jas<br>



osisID="John<br>osisID="Jude<br>osisID="Luke<br>osisID="Luke <br>osisID="Mark<br>osisID="Matt<br>osisID="Phil<br>osisID="Phil.c<br>osisID="Phlm<br>osisID="Phlm.c<br>osisID="Ps<br>



osisID="Rev<br>osisID="Rev <br>osisID="Rom<br>osisID="Rom.c<br>osisID="Titus<br>osisID="Titus <br>osisID="Titus.c<br><br><br>If anyone can help me I would be thankful.<br><br>&nbsp; &nbsp; &nbsp;&nbsp; ------------&nbsp;&nbsp; Marjan&nbsp;&nbsp; ----------<br>



&nbsp; &nbsp; &nbsp; &nbsp; tel:&nbsp; &nbsp; <a href="tel:%2B386%20%280%294%205121%20377" value="+38645121377" target="_blank">+386 (0)4 5121 377</a><br>&nbsp; &nbsp; &nbsp;&nbsp; --------------------------------------</div>
</div>
</blockquote></div><br></div></div>
</blockquote><blockquote type="cite"><span>_______________________________________________</span><br><span>sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a></span><br><span><a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a></span><br><span>Instructions to unsubscribe/change your settings at above page</span></blockquote></div>_______________________________________________<br>sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br><a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>Instructions to unsubscribe/change your settings at above page</blockquote></div><br></div></body></html>