<span style="color: rgb(51, 51, 255);"><span style="font-family: verdana;">Hi John, Duncan, All<br>Thanks for the quick answer,<br>Yes, I tried to debug the CORBA::ORB_init(argc, argv,"omniORB4"); and I couldn't even step into this function, cuz it's on a Lib I guess. The error that I get is:
<br>"First-chance exception at 0x7c90eb74 in TestCORBA.exe: 0xC0000008: An invalid handle was specified."<br>When it goes into the Assembly, the problem is in this instruction: <br>7C90EB6F call 7C90EBAC
<br><span style="color: rgb(204, 0, 0);">7C90EB74 mov eax,dword ptr [esp]<br></span></span></span><span style="color: rgb(51, 51, 255);"><span style="font-family: verdana;">It seems that the program tries to get a return value (which is null) of the function
</span></span><span style="color: rgb(51, 51, 255);"><span style="font-family: verdana;">7C90EBAC from the stack</span></span><span style="color: rgb(51, 51, 255);"><span style="font-family: verdana;"> :-o<br>I tried to compile the echo example in the <top>/src/examples/echo folder of omniORB4 and i got the samething.
<br><br>I tried with other versions of omniORB for VC8 followed all the instructions to compile and run omniORB4 but the problem persists <br>Please note that this program is working just fine in VC6 with omniORB305<br><br>
Thanks for help,<br><br>Cheers,<br>Tahar<br></span></span><span style="color: rgb(51, 51, 255);"><span style="font-family: verdana;"><span style="color: rgb(204, 0, 0);"></span></span></span><br><div><span class="gmail_quote">
On 6/20/07, <b class="gmail_sendername">John Stevenson-Hoare</b> <<a href="mailto:John.Stevenson-Hoare@ffei.co.uk">John.Stevenson-Hoare@ffei.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="blue" lang="EN-US">
<div>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Hi Tahar,</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Didn't experience this problem with
4.0.7 myself as we used the pre-built version. Sounds a bit obvious but did you
try debugging in to the affected function to see why it crashes?</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Cheers</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">John</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<div>
<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr align="center" size="2" width="100%">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> Tahar Ouhrouche
[mailto:<a href="mailto:tahar.ouhrouche@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tahar.ouhrouche@gmail.com</a>] <br>
<b><span style="font-weight: bold;">Sent:</span></b> 19 June 2007 17:47<br>
<b><span style="font-weight: bold;">To:</span></b> Duncan Grisby<br>
<b><span style="font-weight: bold;">Cc:</span></b> John Stevenson-Hoare; <a href="mailto:omniorb-list@omniorb-support.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">omniorb-list@omniorb-support.com
</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [omniORB] omninames
4.1.0 for VC8 crashes when -errlog is specified</span></font></p>
</div><div><span class="e" id="q_11347ea391d13ea0_1">
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p style="margin-bottom: 12pt;"><font color="#000099" face="Verdana" size="3"><span style="font-size: 12pt; font-family: Verdana; color: rgb(0, 0, 153);">Hi
Guys,<br>
I'm facing a kinda similar problem when compiling my application with Visual
Studio 2005 using omniORB4.0.7<br>
As soon as the omniORB::Init() function is called, the program crashed, windows
returns an Acces violation error. <br>
Did you ever faced this kind of problem?<br>
<br>
Thanks,<br>
<br>
Cheers,<br>
<br>
Tahar</span></font></p>
<div>
<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; padding: 0cm 0cm 0cm 6pt; margin-left: 4.8pt; margin-right: 0cm;">
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">venson-Hoare" wrote:<br>
<br>
> If the -errlog parameter is supplied the program simply crashes out.<br>
> After examining the code it appears that the following line in<br>
> omniNames.cc is to blame:<br>
><br>
> Line 159: setvbuf(stderr, 0, _IOLBF, 0);<br>
><br>
> The Visual Studio 2005 documentation states that the 4th argument to<br>
> this function, ie size, must be in the range 2 <= size <= INT_MAX<br>
> (2147483647). Clearly 0 is not in this range! <br>
<br>
Sorry for the delay in replying to this. The problem is down to a<br>
difference between Windows and Unix platforms. On Unix platforms, the<br>
size parameter is the size of the buffer if one is provided, which in<br>
this case there isn't. Windows takes it to be the size of the buffer it<br>
should allocate.<br>
<br>
Windows doesn't support line buffering at all, so the code is pointless<br>
there anyway. I've fixed it by #ifdefing it away on Windows. <br>
<br>
Cheers,<br>
<br>
Duncan.<br>
<br>
--<br>
-- Duncan Grisby --<br>
-- <a href="mailto:duncan@grisby.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">duncan@grisby.org</a>
--<br>
-- <a href="http://www.grisby.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.grisby.org</a> --<br>
<br>
_______________________________________________<br>
omniORB-list mailing list<br>
<a href="mailto:omniORB-list@omniorb-support.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">omniORB-list@omniorb-support.com</a><br>
<a href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</a></span></font>
</p>
</blockquote>
</div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p></span></div>
</div>
<br>
______________________________________________________________________<br>
<br>
CONFIDENTIALITY AND DISCLAIMER NOTICE<br>
<br>
This message and any attachment is confidential and is protected by copyright. If you are not the intended recipient, please email the sender or telephone +44 (0)1442 213440 and delete this message and any attachment from your system. Dissemination and or copying of this email is prohibited if you are not the intended recipient.
<br>
<br>
We believe, but do not warrant, that this email and any attachments are virus free. You should take full responsibility for virus checking.<br>
<br>
No responsibility is accepted by FFEI Ltd for personal emails or emails unconnected with FFEI Limited's business.<br>
______________________________________________________________________<br>
</div>
</blockquote></div><br>