Closed Bug 16273 Opened 27 years ago Closed 26 years ago

[MLK] proxy events need to copy string arguments

Categories

(SeaMonkey :: General, defect, P3)

x86
Other
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: gagan, Assigned: dougt)

References

Details

To handle passing strings correctly across using proxy objects, we need to make a copy of them in the proxy events. When this gets fixed, pls assign this back to me so that I can remove the extra delete that is there in webshell (with my checkins for status code messages #10333)
Summary: proxy events need to copy string arguments → [MLK] proxy events need to copy string arguments
Adding [MLK] in this bug's summary line to mark this as a memory leak since its showing up in Boehm.
who is passing strings using an async proxy?
gagan, is this a show stopper for you?
Target Milestone: M12
need to fix by beta. (10-25-99 meeting)
Blocks: 17432
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → WONTFIX
it would be safe and quicker for you to change your interface than me coping strings.
nope its not a show stopper but I think this should still be deferred not wontfix. Fix it someday damnit! :)
Status: RESOLVED → REOPENED
Status: REOPENED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: WONTFIX → LATER
for you gagan.
Hey Doug, you promised me before I left on vacation that you'd fix this SOON! :^)
Status: RESOLVED → REOPENED
I really think this needs to be fixed. It's problematic to have one piece of code allocate a string and put it into an event, and have another piece of code running asynchronously delete the string. It's inconsistent, leads to bugs, and is a maintenance nightmare. Please fix.
coping strings is a HUGE time waste. I suggested changing your parameters so that they can be addrefed, not to have some out of other piece of code that cleans up "almost leaked" strings. In necko's case, every async notification to the UI would have to do an strlen and an allocation. This would be a significate time hit on your critical threads. I would must rather see a string interface that would do this for you.
Resolution: LATER → ---
Back in ancient history, someone decided that refcounting strings was bad. Copying is the price we pay today. Revisiting this is not possible now. Given this decision, the proxy code should copy the string when constructing the event, and delete the string when deleting the event. That's the only way to deal with this consistently (until I can re-raise the nsIString issue. ;-)
Target Milestone: M12 → M13
I still disagree, but will argue later. Moving this to m13.
Blocks: 20666
*** Bug 20666 has been marked as a duplicate of this bug. ***
Status: REOPENED → ASSIGNED
fix in hand.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → FIXED
fix checked in. will now copy strings (string | wstring) defined in an interface.
Adding verifyme keyword.
Keywords: verifyme
Basedon last eng comments, and not reopen of thie bug. I am marking Verified.
Status: RESOLVED → VERIFIED
No longer blocks: 17432
Product: Browser → Seamonkey
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.