<span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; "><div class="nH"><div class="nH"><h1 class="ha" style="font-family: arial, sans-serif; font-size: large; margin-top: 12px; margin-right: 5px; margin-bottom: 5px; margin-left: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(0, 0, 0); background: inherit; border-right: inherit; ">
<span class="Apple-style-span" style="font-size: 13px; font-weight: normal; ">Greetings</span></h1><div style="font-size: medium; "><span class="Apple-style-span" style="font-size: 13px; font-weight: normal; "><br></span></div>
<div style="font-size: medium; "><span class="Apple-style-span" style="font-size: 13px; font-weight: normal; ">I have built a GRASS module to perform image segmentation. But, to have this running fine I neeeded</span></div>
<div style="font-size: medium; "><span class="Apple-style-span" style="font-size: 13px; font-weight: normal; ">1- g++ -fpic -c segmentimage.cpp</span></div><div style="font-size: medium; "><span class="Apple-style-span" style="font-size: 13px; font-weight: normal; ">2- g++ -shared -o libsegmentimage.dll segmentimage.o</span></div>
<div style="font-size: medium; "><span class="Apple-style-span" style="font-size: 13px; font-weight: normal; ">3- Placed .dll file in lib folder of dist folder in OSGEO4w</span></div><div style="font-size: medium; "><span class="Apple-style-span" style="font-size: 13px; font-weight: normal; ">4- added -lsegmentimage in makefile</span></div>
<div style="font-size: medium; "><span class="Apple-style-span" style="font-size: 13px; font-weight: normal; ">5- compiled successfully with </span><span class="Apple-style-span" style="font-size: 13px; ">make -C i.segment MODULE_TOPDIR=/C/OSGeo4W/usr/src/grass-6.4.svn</span></div>
<div style="font-size: medium; "><span class="Apple-style-span" style="font-size: 13px; font-weight: normal; "><div>make: Entering directory `/c/osgeo4w/usr/src/i.segment&#39;</div><div>gcc -L/c/osgeo4w/usr/src/grass-6.4.svn/dist.i686-pc-ming                                                                                        w32/lib -Wl,--export-dynamic,--enable-runtime-pseudo-reloc  -L/c/OSGeo4W/apps/gd                                                                                        al-16/lib -L/c/OSGeo4W/lib     -o /c/osgeo4w/usr/src/grass-6.4.svn/dist.i686-pc-mingw32/bin/i.segment.exe OBJ.i686-pc-mingw32/hist.o OBJ.i686-pc-mingw32/main.o OBJ.i686-pc-mingw32/open.o /C/OSGeo4W/usr/src/grass-6.4.                                                                                        svn/lib/gis/OBJ.i686-pc-mingw32/fmode.o -lgrass_I -lgras   s_gis -lgrass_datetime -lxdr -liberty -lws2_32    -lz   -lintl   -lgrass_gis -lg                                                                                        rass_datetime -lxdr -liberty -lws2_32    -lz   -lintl  -lgrass_gmath -lgrass_gis                                                                                         -lgrass_datetime -lxdr -liberty -lws2_32    -lz   -lintl   -lsegmentimage  -lxd                                                                                        r -liberty -lws2_32    -lz </div>
<div>make htmlcmd</div><div>make[1]: Entering directory `/c/osgeo4w/usr/src/i.segment&#39;</div><div>make /c/osgeo4w/usr/src/grass-6.4.svn/dist.i686-pc-mingw                                                                                      32/docs/html/i.segment.html HTMLSRC=/c/osgeo4w/usr/src/grass-6.4.svn/dist.i686-pc-mingw32/bin/i.segment.exe</div>
<div>make[2]: Entering directory `/c/osgeo4w/usr/src/i.segment&#39;</div><div>if [ &quot;/c/osgeo4w/usr/src/grass-6.4.svn/dist.i686-pc-ming                                                                                        w32/bin/i.segment.exe&quot; != &quot;&quot; ] ; then GISRC=/c/osgeo4w/usr/src/grass-6.4.svn/dist.i686-pc-mingw32/demolocation/.grassrc64 GISBASE=c:/osgeo4w/usr/src/grass-6.4.svn/dist.i686-pc-mingw32 PATH=&quot;/c                                                                                       /osgeo4w/usr/src/grass-6.4.svn/dist.i686-pc-mingw32/bin:                                                                                        $PATH&quot; PATH=&quot;/c/osgeo4w/usr/src/grass-6.4.svn/dist.i686-                                                                                        pc-mingw32/bin:/c/osgeo4w/usr/src/grass-6.4.svn/dist.i68                                                                                        6-pc-mingw32/lib:.:/usr/local/bin:/mingw/bin:/bin:/osgeo4/bin:/osgeo4/bin:/c/Pro                                                                                        gram Files/Common Files/Microsoft Shared/Windows Live:/c/Program Files (x86)/Com                                                                                        mon Files/Microsoft Shared/Windows Live:/c/Windows/system32:/c/Windows:/c/Window                                                                                        s/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/c/Program Files (x8                                                                                        6)/ATI Technologies/ATI.ACE/Core-Static:/c/MATLAB7/bin/win32:/c/Program Files (x                                                                                        86)/Windows Live/Shared:.:/bin:/bin&quot; LC_ALL=C /c/osgeo4w/usr/src/grass-6.4.svn/dist.i686-pc-mingw32/bin/i.segment.exe --html-description                                                                                         &lt; /dev/null | grep -v &#39;&lt;/body&gt;\|&lt;/html&gt;&#39; &gt; i.segment.tmp.html ; true ; fi</div>
<div>/C/OSGeo4W/usr/src/grass-6.4.svn/tools/mkhtml.sh i.segme                                                                                        nt ; mkdir -p /c/osgeo4w/usr/src/grass-6.4.svn/dist.i686                                                                                        -pc-mingw32/docs/html ; /bin/install -c  -m 644 i.segment.tmp.html /c/osgeo4w/us                                                                                        r/src/grass-6.4.svn_src_snapshot_2010_09_04/dist.i686-pc-mingw32/docs/html/i.seg                                                                                        ment.html ; for file in  *.png *.jpg ; do head -n 1 $file | grep &#39;^#!&#39; &gt; /dev/nu                                                                                        ll ; if [ $? -ne 0 ] ; then /bin/install -c  -m 644 $file /c/osgeo4w/usr/src/gra                                                                                        ss-6.4.svn/dist.i686-pc-mingw32/docs/html ; fi done 2&gt; /                                                                                        dev/null ; true</div>
<div>make[2]: Leaving directory `/c/osgeo4w/usr/src/i.segment&#39;</div><div>make[1]: Leaving directory `/c/osgeo4w/usr/src/i.segment&#39;</div><div>make mancmd</div><div>make[1]: Entering directory `/c/osgeo4w/usr/src/i.segment&#39;</div>
<div>make[1]: Nothing to be done for `mancmd&#39;.</div><div>make[1]: Leaving directory `/c/osgeo4w/usr/src/i.segment&#39;</div><div>make: Leaving directory `/c/osgeo4w/usr/src/i.segment&#39;</div><div><br></div><div>This was built in Msys in a Win7 machine</div>
<div><br></div><div>6- Then I placed exe and dll in OSGEO4w/apps/grass/grass6.4.1svn/bin</div><div>7- I runned in WinGRASS in WinXP and it runned just fine</div><div>8- I runned in WinGRASS in Win7 and I got a pop window checking error and the following was printed in GRASS Command window:</div>
<div><div><div>This application has requested the Runtime to terminate it</div><div>in an unusual way.</div><div>Please contact the application&#39;s support team for more</div><div>information.</div></div></div><div><br>
</div><div>HAs anyone an idea of what might be happening?</div><div><br>Thanks</div><div>Jenny</div><div><br></div></span></div><h1 class="ha" style="font-family: arial, sans-serif; font-size: large; margin-top: 12px; margin-right: 5px; margin-bottom: 5px; margin-left: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(0, 0, 0); background: inherit; border-right: inherit; ">
<span id=":zv" class="hP" style="padding-right: 10px; "><br></span></h1><h1 class="ha" style="font-family: arial, sans-serif; font-size: large; margin-top: 12px; margin-right: 5px; margin-bottom: 5px; margin-left: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(0, 0, 0); background: inherit; border-right: inherit; ">
<span id=":zv" class="hP" style="padding-right: 10px; ">[GRASS]- Running a module in Win7 and XP</span><span id=":zu"></span></h1><div class="dJ" style="height: 0px; overflow-x: hidden; overflow-y: hidden; clear: both; font-size: medium; ">
</div></div></div><div class="nH" style="font-size: medium; "><div class="nH hx" style="color: rgb(0, 0, 0); padding-top: 4px; padding-right: 8px; padding-bottom: 4px; padding-left: 8px; "><div class="nH"></div><div class="nH">
<div class="nH"><div class="h7  ie" style="clear: both; padding-bottom: 0px; "><div class="Bk" style="position: relative; margin-bottom: 10px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(239, 239, 239); border-right-color: rgb(239, 239, 239); border-left-color: rgb(239, 239, 239); border-bottom-color: rgb(226, 226, 226); border-top-width: 0px; border-top-left-radius: 7px 7px; border-top-right-radius: 7px 7px; border-bottom-right-radius: 7px 7px; border-bottom-left-radius: 7px 7px; float: left; width: 581px; ">
<div class="G3 G2" style="padding-top: 3px; background-color: rgb(255, 255, 255); border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-color: rgb(188, 188, 188); border-bottom-color: rgb(188, 188, 188); border-left-color: rgb(188, 188, 188); border-top-width: 1px; border-top-style: solid; border-top-color: rgb(188, 188, 188); border-top-left-radius: 7px 7px; border-top-right-radius: 7px 7px; border-bottom-right-radius: 7px 7px; border-bottom-left-radius: 7px 7px; ">
<div class="G0" style="float: right; margin-top: -4px; overflow-x: hidden; overflow-y: hidden; display: inline; padding-left: 1px; "><div class="J-J5-Ji" style="position: relative; display: inline-block; "><div class="J-Zh-I J-J5-Ji J-Zh-I-Js-Zj GZ L3" tabindex="0" style="position: relative; display: inline-block; margin-top: 0px; margin-right: 0px; margin-bottom: 2px; margin-left: 2px; padding-top: 3px; padding-right: 8px; padding-bottom: 3px; padding-left: 8px; text-align: center; vertical-align: middle; white-space: nowrap; cursor: default; outline-style: none; outline-width: initial; outline-color: initial; font: normal normal normal 75%/normal arial, sans-serif; color: rgb(0, 0, 0); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-color: rgb(187, 187, 187); border-left-color: rgb(187, 187, 187); border-top-left-radius: 0px 0px; border-top-right-radius: 0px 0px; border-bottom-right-radius: 0px 0px; border-bottom-left-radius: 3px 3px; border-top-color: rgb(204, 204, 204); border-bottom-color: rgb(160, 160, 160); background-image: -webkit-gradient(linear, 0% 40%, 0% 70%, from(rgb(249, 249, 249)), to(rgb(227, 227, 227))); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; height: 1.3em; background-position: initial initial; background-repeat: initial initial; ">
<img class="hB" src="https://mail.google.com/mail/images/cleardot.gif" alt="" style="height: 13px; width: 14px; background-image: url(https://mail.google.com/mail/?ui=2&amp;view=dim&amp;iv=1m22hbjku4p4a&amp;it=ic); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; vertical-align: middle; background-position: 0px -40px; background-repeat: no-repeat no-repeat; "><span class="hE" style="color: rgb(0, 69, 198); padding-right: 4px; padding-left: 4px; white-space: nowrap; text-align: center; ">Reply</span></div>
</div><div class="J-J5-Ji" style="position: relative; display: inline-block; "><div id=":wh" class="J-Zh-I J-J5-Ji G1 J-Zh-I-Js-Zq GZ L3" tabindex="0" style="position: relative; display: inline-block; margin-top: 0px; margin-right: 0px !important; margin-bottom: 2px; margin-left: 2px; padding-top: 3px; padding-right: 8px; padding-bottom: 3px; padding-left: 8px; text-align: center; vertical-align: middle; white-space: nowrap; cursor: default; outline-style: none; outline-width: initial; outline-color: initial; font: normal normal normal 75%/normal arial, sans-serif; color: rgb(0, 0, 0); border-top-width: 1px; border-right-width: 0px !important; border-bottom-width: 1px; border-left-width: 0px; border-top-style: solid; border-right-style: initial !important; border-bottom-style: solid; border-left-style: solid; border-right-color: initial !important; border-left-color: rgb(187, 187, 187); border-top-left-radius: 0px 0px; border-top-right-radius: 7px 7px; border-bottom-right-radius: 0px 0px; border-bottom-left-radius: 0px 0px; border-top-color: rgb(204, 204, 204); border-bottom-color: rgb(160, 160, 160); background-image: -webkit-gradient(linear, 0% 40%, 0% 70%, from(rgb(249, 249, 249)), to(rgb(227, 227, 227))); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; height: 1.3em; background-position: initial initial; background-repeat: initial initial; ">
<img class="hA" src="https://mail.google.com/mail/images/cleardot.gif" alt="" style="height: 7px; width: 7px; background-image: url(https://mail.google.com/mail/?ui=2&amp;view=dim&amp;iv=1m22hbjku4p4a&amp;it=ic); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: -120px 0px; background-repeat: no-repeat no-repeat; "><span style="visibility: hidden; "></span></div>
</div></div><div class="nH"><div id=":wj"><div class="HprMsc"><div class="gs"><div class="gE iv gt" style="font-size: 13px; padding-left: 4px; padding-bottom: 3px; cursor: auto; padding-right: 0px; "><table cellpadding="0" class="cf gJ" style="border-collapse: collapse; margin-top: 0px; width: auto; ">
<tbody><tr><td class="gF gK" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, sans-serif; text-align: left; white-space: nowrap; padding-right: 8px; vertical-align: top; width: 255px; padding-top: 0px; ">
<table cellpadding="0" class="cf ix" style="border-collapse: collapse; table-layout: fixed; width: 255px; "><tbody><tr><td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, sans-serif; ">
<div class="iw" style="overflow-x: hidden; overflow-y: hidden; white-space: nowrap; "><span class="lHQn1d"><img class=" f g8 " src="https://mail.google.com/mail/images/cleardot.gif" alt="" style="margin-top: 0px; vertical-align: top; height: 15px; width: 15px; background-image: url(https://mail.google.com/mail/?ui=2&amp;view=dim&amp;iv=1m22hbjku4p4a&amp;it=ic); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; cursor: pointer !important; background-position: 0px -20px; background-repeat: no-repeat no-repeat; "></span><span class="ik" style="vertical-align: top; position: relative; top: -1px; "><img width="16px" height="16px" class="c6 QrVm3d" id="upi" name="upi" src="https://mail.google.com/mail/images/cleardot.gif" style="width: 16px; height: 16px; background-image: url(https://mail.google.com/mail/images/2/icons_ns9.png); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: 0px -80px; background-repeat: no-repeat no-repeat; "></span><h3 class="gD" style="font-size: 13px; font-weight: bold; white-space: nowrap; display: inline; vertical-align: top; color: rgb(0, 104, 28); ">
<span style="position: relative; vertical-align: top; ">Jenny Turner</span></h3> <span class="hb" style="vertical-align: top; ">to <span class="g2" style="vertical-align: top; ">hellik</span></span></div></td></tr></tbody></table>
</td><td class="gH" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, sans-serif; text-align: right; white-space: nowrap; vertical-align: top; "><div class="gK" style="padding-top: 0px; padding-right: 4px; ">
<span class="iD" style="color: rgb(132, 170, 255); text-decoration: underline; cursor: pointer; vertical-align: top; ">show details</span> <span id=":104" class="g3" title="Wed, Apr 6, 2011 at 1:24 AM" alt="Wed, Apr 6, 2011 at 1:24 AM" style="vertical-align: top; margin-right: 3px; ">1:24 AM (9 hours ago)</span><span></span></div>
</td><td class="gH" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, sans-serif; text-align: right; white-space: nowrap; vertical-align: top; "></td></tr></tbody></table>
</div><div class="iF" style="height: 0px; overflow-x: hidden; overflow-y: hidden; clear: both; "></div><div class="utdU2e"></div><div class="QqXVeb"></div><div id=":xk" class="ii gt" style="font-size: 13px; margin-top: 5px; margin-right: 15px; margin-bottom: 5px; margin-left: 15px; padding-bottom: 20px; position: relative; z-index: 2; ">
<div id=":zr">Greetings<div>I have built a module, with a shared .dll file, and I&#39;ve been able to run it in WinXP but not in Win7. In Win/ i get:</div><div><div>This application has requested the Runtime to terminate it</div>
<div>in an unusual way.</div><div>Please contact the application&#39;s support team for more</div><div>information.</div></div><div><br></div><div>Do you have any advice on what might be happening? The weirdest thing is that I have compiled with OSGEO4W in Win7 not in WinXP.</div>
<div>If you want, or if you are able to help me, I can send you my code and my process.</div><div>Why am I sending you this email? because you are the most active wiNGRASS user/dev. and maybe you are the one that can help me</div>
<div><br></div><div>Thans</div></div></div></div></div></div></div></div></div></div></div></div></div></div></span>