In continuation...
Pritpal Bedi wrote:
>
> Unrecoverable error 9023: hb_xgrab requested to allocate zero bytes
> Called from HB_SETENV(0)
> Called from HBMK2(945) in ../../../hbmk2.prg
> Called from MAIN(473) in ../../../hbmk2.prg
>
hbgetenv.c
========
HB_BOOL hb_setenv( const char * szName, const char * szValue )
{
#if defined( HB_OS_WIN )
{
LPTSTR lpName = HB_TCHAR_CONVTO( szName );
LPTSTR lpValue = HB_TCHAR_CONVTO( szValue );
HB_BOOL bResult = ( SetEnvironmentVariable( lpName, lpValue ) != 0 );
...
hbmk2.prg
========
CASE _VAR_MODE_DELETE ; hb_SetEnv( tmp[ 2 ] ) ; EXIT
See, const char * szValue , is never sent and is NULL in C.
Also I do not see how a variable gets removed from list in this code.
I will be wrong if an empty value nullifies it.
-----
enjoy hbIDEing...
Pritpal Bedi
http://hbide.vouch.info/
--
View this message in context:
http://harbour-devel.1590103.n2.nabble.com/hbMK2-Switch-env-RTE-tp5012018p5012050.html
Sent from the harbour-devel mailing list archive at Nabble.com.
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour