bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSProcessInfo's _gnu_process_args crash fix


From: Tom Koelman
Subject: Re: NSProcessInfo's _gnu_process_args crash fix
Date: Sun, 23 Feb 2003 23:18:32 +0100
User-agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2

Adam Fedor <fedor@doc.com> writes:

> Tom Koelman wrote:
>> Adam Fedor <fedor@doc.com> writes:
>>
>>>Tom Koelman wrote:
>>>
>>>>Hi,
>>>>Under MiNGQ _gnu_process_args crashes when argv is 0. This patch
>>>>fixes
>>>>this and sets the executable to the empty string when this happens.
>>>>
>>>
>>>Wow. How often does this happen? It seems pretty strange to me.
>> It happens under MinGW. When I create a dll that uses GNUstep, and
>> this dll in turn is called by a program that is not compiled by gcc
>> this is the case.
>>
>
> OK. I commited this to the freeze branch (with a minor change so it
> compiles on gcc pre 3.0).

Meanwhile,

I think the attached patch is better. Under MinGW, it uses the
GetModuleFileName call to figure out the name of the executable if
argv happens to be 0.

Tom Koelman

Attachment: patchfile.patch
Description: Under MinGW use GetModuleFileName to find executable name if needed


reply via email to

[Prev in Thread] Current Thread [Next in Thread]