Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

DBTools Crash

2 posts in General Discussion Last posting was on 2003-01-30 14:27:18.0Z
Jay Posted on 2003-01-29 22:16:08.0Z
From: Jay
Date: Wed, 29 Jan 2003 17:16:08 -0500
Newsgroups: ianywhere.public.general
Subject: DBTools Crash
Message-ID: <013EDBEDE8AC8598007A53D885256CBD.007A53EB85256CBD@webforums>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub ianywhere.public.general:217
Article PK: 2039

Hello,
I am using the DB Tools API to write a database licensing and upgrade
utility. The problem I'm having is using the callback functions to log the
status and error messages. The callback functions are called fine, but
afterwards, the dll crashes with 0xc0000005 Access violation. The dll is a
MFC dll written using VS 6.0. The code calling the DB Tools function is in
a class however the callback function is not in the class and is defined
as: extern short MessageCallBack(char far * str); (adding the _callback
prevents the dll from compiling). I do not know why the crash occurs only
that it occurs after the callback function returns (even if the callback
function doesn't do anything). Any help would be greatly appreciated.
Thanks,
Jay


Jason Hinsperger Posted on 2003-01-30 14:27:18.0Z
From: "Jason Hinsperger" <NOJason_HinspergerSPAM@hotmail.com>
References: <013EDBEDE8AC8598007A53D885256CBD.007A53EB85256CBD@webforums>
Subject: Re: DBTools Crash
Date: Thu, 30 Jan 2003 09:27:18 -0500
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <F9dzU5GyCHA.351@forums.sybase.com>
Newsgroups: ianywhere.public.general
NNTP-Posting-Host: 172.31.143.226
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub ianywhere.public.general:207
Article PK: 2027

What calling convention are you using for the callback? I believe it should
be stdcall (as opposed to cdecl).

--
Jason Hinsperger
International and Sustaining Engineering
iAnywhere Solutions

Whitepapers, TechDocs, and bug fixes are all available through the iAnywhere
Developer Community at www.ianywhere.com/developer
--

<Jay> wrote in message
news:013EDBEDE8AC8598007A53D885256CBD.007A53EB85256CBD@webforums...
> Hello,
> I am using the DB Tools API to write a database licensing and upgrade
> utility. The problem I'm having is using the callback functions to log the
> status and error messages. The callback functions are called fine, but
> afterwards, the dll crashes with 0xc0000005 Access violation. The dll is a
> MFC dll written using VS 6.0. The code calling the DB Tools function is in
> a class however the callback function is not in the class and is defined
> as: extern short MessageCallBack(char far * str); (adding the _callback
> prevents the dll from compiling). I do not know why the crash occurs only
> that it occurs after the callback function returns (even if the callback
> function doesn't do anything). Any help would be greatly appreciated.
> Thanks,
> Jay