Article View: microsoft.public.vc.activextemplatelib
Article #14HELP!!! Automation Controller calls to Server Crashes - Stack Overflow - How debug???
From: David Morgenlender
Date: Thu, 25 Jun 1998 00:00
Date: Thu, 25 Jun 1998 00:00
34 lines
2611 bytes
2611 bytes
I'm developing an app with an Automation Controller (client) written in Borland C++ Builder 3 & an Automation Server written in Visual C++ 5. The Server is an in-process server (DLL). The Controller calls methods in the Server via vtbl. I've got one method call from the Controller to the Server working fine. But I'm having big problems with the 2nd. It crashes with a Stack Overllow exception somewhere between the call in the Controller app & reaching the method in the Server. One thing that makes debugging difficult is that I can't find any way to simultaneously debug the EXE (in BCB3) & the DLL (in VC5). So I must debug in one or the other. When I debug the EXE, a stack overflow messagebox appears. The call stack window doesn't even show the EXE. From the stack bottom, there are MANY calls from the same address in the DLL. Then some other addresses in the DLL. Then addresses from various other places including MFC42D.DLL. But since the debugger can't read the VC5 symbol table, there's nothing I can do with the addresses. When I debug the DLL, starting the EXE in the process, I get a stack overflow messagebox, but the call stack cannot be displayed. Short of somehow debugging COM through disassembled code, there's not much I can do here. I've already tried changing how I specify the array (x[] to *x). I guess I could get rid of the array just to see if that helps ... but that's a lot of work. I've already shrunk the array to miniscule size. Any suggestions??? ======================================================= Dave Morgenlender e-mail: dmorgen@alum.mit.edu =======================================================
Technical Details
Message-ID:
<359bcbd5.67039496@enews.newsguy.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9701,408fdadaa1bdf27f,start X-Google-Attributes: gidf9701,public X-Google-Thread: fc3fb,408fdadaa1bdf27f,start X-Google-Attributes: gidfc3fb,public X-Google-Thread: fe15c,408fdadaa1bdf27f,start X-Google-Attributes: gidfe15c,public X-Google-Thread: 114412,408fdadaa1bdf27f,start X-Google-Attributes: gid114412,public From: dmorgen@alum.mit.edu (David Morgenlender) Subject: HELP!!! Automation Controller calls to Server Crashes - Stack Overflow - How debug??? Date: 1998/06/25 Message-ID: <359bcbd5.67039496@enews.newsguy.com> X-Deja-AN: 366130298 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: http://extra.newsguy.com Newsgroups: microsoft.public.vc.activextemplatelib,microsoft.public.vc.debugger,microsoft.public.win32.programmer.ole,borland.public.cppbuilder.activex