Re: big orbit problem.
- From: zucchi zedzone mmc com au (NotZed)
- To: bob cs csoft net
- Cc: hp redhat com (Havoc Pennington), gnome-devel-list gnome org
- Subject: Re: big orbit problem.
- Date: Fri, 12 Nov 1999 08:51:36 +1030 (CST)
Well then you didn't provide "all the code that is executed upto that
point" at all.
Something is probably corrupting the memory lists, causing malloc
problems. Definetly try electricfence before going further.
Michael
>
> On Fri, 12 Nov 1999, NotZed wrote:
>
> >
> > Hi,
> >
> > > blade_env *blade=(blade_env*)malloc(sizeof(blade_env));
> > > blade->ev=(CORBA_Environment*)malloc(sizeof(CORBA_Environment));
> >
> > These casts are redundant if you include the right headers.
> > (it'll make the code more readable without it).
> k. I'll clean this up. :)
>
> >
> > > CORBA_exception_init(blade->ev);
> > > blade->orb = CORBA_ORB_init(argc, argv, "orbit-local-orb", blade->ev);
> >
> > It should be &argc to this function at least, assuming argc is an int.
>
> no. this is in a function that takes int *argc
> the pointer argc is somehow being over written when CORBA_string_duping
>
> >
> > gcc -Wall would pick this up.
> >
> > Michael
> >
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]