Opened 11 years ago

Closed 11 years ago

Last modified 4 years ago

#896 closed merge (fixed)

GetLastError/SetLastError in Windows

Reported by: eivuokko Owned by: igloo
Priority: normal Milestone: 6.6.1
Component: Runtime System Version: 6.4.2
Keywords: Cc:
Operating System: Windows Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description (last modified by simonmar)

RTS might call Windows API calls transparently to user, which can lead to wierd GetLastError-results, even with bound threads. GetLastError/SetLastError needs similar workaround as errno has.

Change History (7)

comment:1 Changed 11 years ago by simonmar

Description: modified (diff)
difficulty: UnknownEasy (1 hr)
Milestone: 6.6.1

This one isn't too hard, let's do it for 6.6.1.

comment:2 Changed 11 years ago by simonmar

Owner: set to simonmar

comment:3 Changed 11 years ago by simonmar

Owner: changed from simonmar to igloo
Type: bugmerge

Fixed. To merge:

Fri Jan 26 08:26:20 PST 2007  Simon Marlow <>
  * Save the Win32 error code where necessary

Mon Jan 29 04:45:59 PST 2007  Simon Marlow <>
  * fix bug in GetLastError/SetLastError patch

and in the testsuite:

Mon Jan 29 04:50:49 PST 2007  Simon Marlow <>
  * add a test for #896

comment:4 Changed 11 years ago by igloo

Resolution: fixed
Status: newclosed


comment:5 Changed 9 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:6 Changed 8 years ago by simonmar

difficulty: Easy (1 hr)Easy (less than 1 hour)

comment:7 Changed 4 years ago by Simon Marlow <simonmar@…>

Note: See TracTickets for help on using tickets.