Thanks Bill and Kyle, I used Valgrind, and located the source of the error. I had declared something like : Static realCompositeGridFunction CFDWxy ; and it was outside the scope in DeformingBodyMotion.C.. I used this since I wanted one copy for all objects of DeformingBodyMotion. Regards, Dominic -----Original Message----- From: overture-bounce@xxxxxxxxxxxxx [mailto:overture-bounce@xxxxxxxxxxxxx] On Behalf Of Bill Henshaw Sent: Tuesday, April 28, 2009 1:13 AM To: overture@xxxxxxxxxxxxx Subject: [overture] Re: Need help to debug code Hi Dominic, I guess that you may have an A++ Index or Range in global scope or file scope that is being put in a dynamic library. In this case the constructor may not be called. You should avoid having any C++ objects in global or file scope that are put in dynamic libraries. ...Bill #DOMINIC DENVER JOHN CHANDAR# wrote: > Hi, > > I have been modifying many portions of cg.v22, but until now I had > no problems in compiling or executing them. I've noticed a weird error > when running cgins recently and Im unable to trace from where it is > originating. > > $Overture/../cg.v22.beta/ins/SERIALBUILD/ins/bin/cgins > ERROR: in Internal_Index::Consistency_Check(Internal_Index::operator=) > -- Index_Mode unknown (Index_Mode = 0) Exiting A++ program from inside > of APP_ABORT()! (Calling system abort function ...) Exiting P++ > Virtual Machine! > Virtual Machine exited! > Abort > This happens the moment I hit cgins... So I decided to compile a > simple dummy program and link it with the libraires libCgins and libCgcommon. > I found the error originates when I link the code with libCgcommon. > (Where most of the changes I have made). Is there any way to trace .. > from that > library where this error is occuring ? Im trying to revert back to my > older version meanwhile.. to remove the error. Apart from this way, Is > there any way I can locate the error ? > > Thanks, > Dominic >