[omniORB] Win32 Question

ryan.tecco rtecco@voxel.ummu.umich.edu
Thu, 3 Jun 1999 18:23:30 -0400 (EDT)


Yes, I changed delete to _dispose, but the assertions occur before the
object destructor is ever run. Making a *request* to a CORBA object is
causing it to crash.

--------------
ryan.tecco
734.647.8057
microcosm/CAVE programmer
the university of michigan
"when all the pettiness is gone,
what do we really have?"

On Thu, 3 Jun 1999, Bruce Visscher wrote:

> 
> 
> "ryan.tecco" wrote:
> 
> > I did some debugging through my code and found that the assertion is being
> > generated in CORBA::Boolean _sk_MY::dispatch(...);
> >
> > It appears to be returning a 1 and that is causing the assertion.
> >
> > rt
> >
> 
> Did you try changing the delete to dispose as Charles suggested?  If not then I
> think this is the culprit.
> 
> > On Thu, 3 Jun 1999, Charles Martin wrote:
> >
> > > ryan.tecco wrote:
> > > >
> > > >
> > > > void CVoiceRecDlg::OnCancel()
> > > > {
> > > >         delete my_impl;
> > > >         CDialog::OnCancel();
> > > > }
> > >
> > > If I recall, you should never delete a CORBA implementation object by calling
> > > 'delete' yourself. You should call 'my_impl->_dispose()' instead. This might
> > > be what is causing your errors. But, I might be wrong since I am also
> > > fairly new to ORBs....
> > >
>