Macho version crash

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Oct 30 17:12:27 CST 2003


on 10/30/03 16:59, Wright Bob D Civ WRALC/LSRIC at Bob.Wright at robins.af.mil
wrote:

> Hi Ruslan,
> 
> I have successfully taken my data from my MacApp Carbon application and
> exported it to my Valentina database which I plan to use in my new Mach-O
> application using Cocoa.  I can view it with the Valentina App.
> 
> I am now trying to pull some of the data into my beginner Mach-O application.
> I have patterned this little beginner Mach-O application around the Cocoa Demo
> application you sent me a few days ago.  In fact it is almost identical except
> for a few class name changes.
> 
> My Mach-O app crashes with a 'SIGABRT' with  the following stack dump when I
> do the "OpenDatabase" call to Valentina - here is what the stack:
> 
> kill
> 
> abort
> 
> __cxxabiv1::__terminate((void*) ())
> std::terminate
> __cxa_rethrow
> FBL_DataBase(FSSpec const*, char const*)
> VDK_DataBase::OpenDataBase(FSSpec const*, char const*, bool)
> [MRValentinaDatabase::OpenDatabaseWithFileName:]
> [MRDocument::AwakeFromNib]
> 
> ...
> 
> I am doing the 
> 
> ValentinaInit(3*1024*1024,  my#, NULL);
> 
> Prior to attempting to do the OpenDataBase call.
> 
> Any ideas of what the problem could be?
> 
> Do I need to call the
> 
> VDK_BaseObject::InitStaticMembers();
> 
> MakeDataBaseCache(3*1024, 3*1024);?
> 
> The only Valentina initialization I am doing is the ValentinaInit() call.
> 
> Thanks for any help or advice you can give me.

Hi Bob,

1) ValentinaInit() is enough.

2) Have I correctly understand that you at first have create db in VAPP and
import data, then you have create C++ classes and now try to apply them to
that db ?

I think problem is here.
It is very important ORDER of CREATION of objects.

You can resolve problem if
A) at first you create empty db using your C++ classes.
    i.e. Instead of open try do Create().
    check your empty db.
B) now import data into THIS empty db created by C++ app.

Now you must be able open it fine.


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list