[omniORB] omninames 4.1.0 for VC8 crashes when -errlog is specified

Tahar Ouhrouche tahar.ouhrouche at gmail.com
Tue Jun 19 19:46:38 BST 2007


Hi Guys,
I'm facing a kinda similar problem when compiling my application with Visual
Studio 2005 using omniORB4.0.7
As soon as the omniORB::Init() function is called, the program crashed,
windows returns an Acces violation error.
Did you ever faced this kind of problem?

Thanks,

Cheers,

Tahar

venson-Hoare" wrote:
>
> > If the -errlog parameter is supplied the program simply crashes out.
> > After examining the code it appears that the following line in
> > omniNames.cc is to blame:
> >
> > Line 159:   setvbuf(stderr, 0, _IOLBF, 0);
> >
> > The Visual Studio 2005 documentation states that the 4th argument to
> > this function, ie size, must be in the range 2 <= size <= INT_MAX
> > (2147483647). Clearly 0 is not in this range!
>
> Sorry for the delay in replying to this. The problem is down to a
> difference between Windows and Unix platforms. On Unix platforms, the
> size parameter is the size of the buffer if one is provided, which in
> this case there isn't. Windows takes it to be the size of the buffer it
> should allocate.
>
> Windows doesn't support line buffering at all, so the code is pointless
> there anyway. I've fixed it by #ifdefing it away on Windows.
>
> Cheers,
>
> Duncan.
>
> --
> -- Duncan Grisby         --
>   -- duncan at grisby.org     --
>    -- http://www.grisby.org --
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070619/ceec8846/attachment.htm


More information about the omniORB-list mailing list