Closed Bug 205980 Opened 22 years ago Closed 22 years ago

mozipcd.exe fails to initialize modules if launched from command line

Categories

(Core :: IPC, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla1.5alpha

People

(Reporter: darin.moz, Assigned: darin.moz)

Details

(Whiteboard: [ETA: June 12, 2003])

Attachments

(1 file)

mozipcd.exe fails to initialize modules if launched from command line. steps to reproduce: C:\> cd \path\to\mozilla\dist\bin C:\path\to\mozilla\dist\bin\> mozipcd.exe running as .\mozipcd.exe works or specifying any other relative path or the full path works. the problem is that ipcdWin.cpp looks at argv[0] to determine the location of the executable. it looks for modules relative to the executable. this is not a major bug since the client IPC code always launches the daemon with a full file path. another related issue is that we should be using WinMain for release builds instead of main. this is related because it changes how we get at the path of the executable.
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.4final
Whiteboard: [ETA: June 12, 2003]
i'm not going to get a chance to work on this because i'm going on vacation now, but it seems like something that would be trivial to fix... just need to replace main() with WinMain() in optimized builds (see ipcdWin.cpp) and fixup the command line handling a bit. conrad, john: either of you interested in taking this for 1.4 final?
Target Milestone: mozilla1.4final → mozilla1.5alpha
Attached patch v1 patchSplinter Review
simple patch to make use of GetModuleFileName instead of argv. also, this patch makes it so the console is disabled in non-debug builds.
Attachment #126279 - Flags: review?(ccarlen)
Comment on attachment 126279 [details] [diff] [review] v1 patch r=ccarlen
Attachment #126279 - Flags: review?(ccarlen) → review+
Attachment #126279 - Flags: superreview?(alecf)
Comment on attachment 126279 [details] [diff] [review] v1 patch I think you can check for MOZ_WINCONSOLE as well, to decide if you need a WinMain - its supposed to be used to force a console in optimized builds (which you might find useful for debugging mozipcd!) sr=alecf with or without the MOZ_WINCONSOLE stuff
Attachment #126279 - Flags: superreview?(alecf) → superreview+
fixed-on-trunk
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
QA Contact: carosendahl → ipc
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: