Re: DLL works when built from VB IDE but not from command line
- From: "Mark Yudkin" <myudkinATcompuserveDOTcom@xxxxxxxxxxxxxx>
- Date: Thu, 15 Sep 2005 08:26:28 +0200
As I said "I wonder if you have a stack overflow?". VB6 allocates 1MB stack
by default, C++ a lot less, when building. Try increasing the stack size
massively when you link.
I have a case where VB6 calls a lot of PL/I. Since PL/I is stack-intensive,
we needed to ask VB6 to use a 10MB stack, otherwise the application crashes.
"Richard" <Richard@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:544F0A47-7D26-414C-9B68-6686D94E14B6@xxxxxxxxxxxxxxxx
> We have a similar problem here. If the project is a C++ managed project,
> then project references are simply ignored when the build occurs on the
> command line. Works fine in the IDE, but not on the command line.
>
> Is there a resolution for this?
>
> Richard
>
> "Mark Yudkin" wrote:
>
>> I wonder if you have a stack overflow, or other corruption, in the
>> hosting
>> EXE? You mention .NET. Are you trying to call your VB6 DLL from a .NET
>> environment? If so, you may have an interop issue (==> .NET forum).
>>
>> "P Abramowitz" <PAbramowitz@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:6C6A30DA-BA76-4F4D-802C-A2410B760C05@xxxxxxxxxxxxxxxx
>> > We have an application containing many VB6 DLLs that we've had for many
>> > years. Recently we started ported some of them to .NET. We started
>> > noticing
>> > some strange behaviour with 2 of our old VB6 DLLs recently. When we
>> > build
>> > them from the command line (as our batch builder does) some of their
>> > classes
>> > do not work in the application. If we build them in the VB IDE, they
>> > will
>> > work fine. If we then rebuild them from a command line they stop
>> > working
>> > correctly. This is a recent problem - building from the command line
>> > has
>> > worked for many years. It's not a registration issue - running
>> > regsvr32
>> > has
>> > no effect. The command line is nothing more than "vb6.exe /m <project
>> > name>". Any ideas?
>>
>>
>>
.
- References:
- DLL works when built from VB IDE but not from command line
- From: P Abramowitz
- Re: DLL works when built from VB IDE but not from command line
- From: Mark Yudkin
- DLL works when built from VB IDE but not from command line
- Prev by Date: Re: VB6 ANSI to Unicode conversion wrong with fixed-length strings in structures
- Next by Date: Re: VB6 ANSI to Unicode conversion wrong with fixed-length strings in structures
- Previous by thread: Re: DLL works when built from VB IDE but not from command line
- Next by thread: Re: Error opening Excel workbook via VB automation
- Index(es):
Relevant Pages
|