Program exits with signal 11 (SIGSEGV).

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Jul 25 22:21:57 CDT 2003


on 7/25/03 21:30, Arthur Clemens at aclemens at xs4all.nl wrote:

>>>> Check next points:
>>>> 
>>>> 1) if you use cursors then kill all cursors before you close db.
>>>> 
>>>> 2) if you close db you do this before ValentinaShutdown call.
>>> 
>>> Yes, #2 was the problem.
>>> 
>>> In the Cocoa Demo code, it actually does the ValentinaShutdown
>>> inside the [self close] method BEFORE deleting the databasedefinition.
>>> 
>>> I reversed the order of the lines of code and it works properly now.
> 
> 
> In the Cocoa demo, _databaseDefinition is not a cursor, but a
> VDK_DataBase subclass object. I am not sure if it should be preferably
> deleted before or after ValentinaShutdown (both options seem to work
> without error), but it should not be related to the problem you were
> experiencing.

ValentinaShutdown() must be LAST command to Valentina kernel.

> As I saw in your code, you were deallocing an object twice, that will
> be most likely the culprit.

-- 
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