Re: Problem closing app with big UDT
- From: Bob O`Bob <filterbob@xxxxxxxxxxxxxxx>
- Date: Wed, 22 Nov 2006 11:35:09 -0800
David Kerber wrote:
In article <45640ea6.174195498@xxxxxxxxxxxxxxxx>, erewhon@xxxxxxxxxx says...On Tue, 21 Nov 2006 19:23:56 -0500, David Kerber
<ns_dkerber@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
In article <u5YSTFcDHHA.3604@xxxxxxxxxxxxxxxxxxxx>, Dan@xxxxxxxx says...It would take about 1 hour max to re-work itPassing it back and forth between a Delphi .dll to a VB application. Yes, we are aware of the alignment issue, and have designed with that in mind. ALL the data is of one of 3 types: Long, Double, or Byte array. All the array sizes are multiples of 4, so the 4-byte alignment should be maintained throughout unless we screwed up somewhere. We didn't think of passing the whole thing as a byte array, and it's too late to go back and rework it now.This same structure works with no trouble inAre you trying to pass the UDT between VB and Delphi, or do you just mean that the Delphi equivalent works fine?
Delphi.
In any one app, maybe, but this dll is in production use in several different apps, in 3 different languages.
The re-work time is the re-work time is the re-work time.
If it's one dll.
Testing is of course another matter.
You wouldn't be here if you hadn't already recognized the need.
Adding more band-aids would most likely only make the inevitable worse
when you're finally forced to really fix it.
I'd like to call attention to your own words:
"unless we screwed up somewhere"
I don't actually see how that's in question, since /someone/ posted
already that it doesn't seem to be closing correctly.
I do have one truly *horrible* idea for you though.
It's nothing but a further cover-up.
Be aware that it doesn't fix anything, though it might *hide* it.
And at the very real potential cost of causing /other/ crashes later.
We've already told you how you can probably cure the problem.
But if all you want now is a band-aid to cover it up, then
you might as well try the mother-of-all-VB-band-aids:
<http://obob.com/cis58/evilend.html>
Bob
--
.
- Follow-Ups:
- Re: Problem closing app with big UDT
- From: David Kerber
- Re: Problem closing app with big UDT
- References:
- Problem closing app with big UDT
- From: David Kerber
- Re: Problem closing app with big UDT
- From: Dan Barclay
- Re: Problem closing app with big UDT
- From: David Kerber
- Re: Problem closing app with big UDT
- From: J French
- Re: Problem closing app with big UDT
- From: David Kerber
- Problem closing app with big UDT
- Prev by Date: Re: Problem closing app with big UDT
- Next by Date: Re: VB6 App.EXEName question
- Previous by thread: Re: Problem closing app with big UDT
- Next by thread: Re: Problem closing app with big UDT
- Index(es):
Relevant Pages
|