Hi,
I would like to use the gmtime function from GUSI
(2.2.2) with CodeWarrior 7.0, and it causes an unmapped
memory exception on the following line of
GUSIPPOSIX.cp:
*t = GUSITime(static_cast<unsigned long>(*timer),
GUSITime::seconds).Local2GMTime();
In fact, the get_tm() function return an incorrect
adress:
variable value
t : std::tm*
tm_sec : long 0x75666669
tm_min : long Invalid pointer
tm_hour : long Invalid pointer
tm_mday : long Invalid pointer
tm_mon : long Invalid pointer
tm_year : long Invalid pointer
tm_wday : long Invalid pointer
tm_yday : long Invalid pointer
tm_isdst : long Invalid pointer
But, a (funny?) thing is that if HIDING_PLACE_MISERY is
defined, the result is correct.
I tried with with GUSI 2.1.9 and CodeWarrior 5.0, and
the result still the same.
Does anyone have a solution for this?
Thanks
Logged In: YES
user_id=547185
the main which causes memory exception
Logged In: YES
user_id=547185
a workaround for this?
the MSL C.PPC.MTrgt.mcp project implements the
functions gmtime + time.
So, simply by commenting these 2 functions in GUSI,
it works fine.