Opened 10 years ago

Closed 10 years ago

Last modified 3 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: 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 10 years ago by simonmar

  • Description modified (diff)
  • difficulty changed from Unknown to Easy (1 hr)
  • Milestone set to 6.6.1

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

comment:2 Changed 10 years ago by simonmar

  • Owner set to simonmar

comment:3 Changed 10 years ago by simonmar

  • Owner changed from simonmar to igloo
  • Type changed from bug to merge

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 10 years ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed


comment:5 Changed 8 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:6 Changed 7 years ago by simonmar

  • difficulty changed from Easy (1 hr) to Easy (less than 1 hour)

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

Note: See TracTickets for help on using tickets.