Using DOSLib 6.1, code that works fine in AutoCAD 2002 will Crash AutoCAD 2004 every time it is run. Eg. On AutoCAD 2002 typing: (dos_regget "program" "section" "key") Gives the result: nil However, on AutoCAD 2004 running under Windows 2000 or XP, & the 2004 version of DOSlib, typing the command either makes AutoCAD quit instantly without any error messages appearing, or under Architectural Desktop 2004 gives the error "exception error 0xC0000005 (access violation)" Is this a known bug in DOSlib? Is there any way of getting around the problem? TIA Matthew