Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#7 pb with gmtime()

open
nobody
Other (1)
5
2002-05-17
2002-05-17
leven
No

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

Discussion

  • leven
    leven
    2002-05-21

    Logged In: YES
    user_id=547185

     
  • leven
    leven
    2002-05-21

    the main which causes memory exception

     
    Attachments
  • leven
    leven
    2002-06-04

    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.