Crash 'EXC_BAD_ACCESS' when calling CreateDatabase() in C++ VSDK

Matthew Jew mjew at icnc.com
Fri Jun 2 00:32:12 CDT 2006


On Jun 1, 2006, at 11:59 PM, Ruslan Zasukhin wrote:

> On 6/2/06 4:02 AM, "Matthew Jew" <mjew at icnc.com> wrote:
>
> Hi Matthew
>
>> I rearranged some things in my project related to linking and such
>> and now things are different.
>
>> (This is why I was so interested in seeing a sample XCode project
>> that used the C++ VSDK 2;
>
> But we have VSDK/Examples.

Yes, but the required setup seems to be a little different when using  
the C++ VSDK 2
in a Cocoa application project. The VSDK Examples are pure C++  
without the
Cocoa application framework. And the sample Cocoa Valentina  
application uses
the Cocoa wrapper, not the C++ VSDK directly.

>
>>   most of the problems I have been having are just in figuring out
>> how to configure the XCode project.)
>>
>> Before the project was not properly linking to the libvkernel, hence
>> the failure to initialize.
>
> Aha, Most probably you have ZERO LINK option ON.
>
> I prefer often set it OFF, because when it is ON, you cannot see  
> correct
> link errors.
>
>> Now it apparently is linking better, but now the call to
>> ValentinaInit returns a 0.
>>
>> Is there anywhere I can look to find out what error is causing
>> ValentinaInit to fail?
>
>     if( gCache )
>         return gCache->get_ByteSize();
>     else
>         return 0;
>
> Strange, sounds like cache was not allocated.
>
>

Yes, the cache seems to have not been allocated.
Is there any error message or error code that is set somewhere when  
this happens?

I am continuing to try different settings and options.

- Matthew



More information about the Valentina mailing list