digitalmars.D.bugs - [Issue 985] New: dll-imported functions return values broken
- d-bugmail puremagic.com (22/22) Feb 19 2007 http://d.puremagic.com/issues/show_bug.cgi?id=985
- d-bugmail puremagic.com (7/7) Feb 19 2007 http://d.puremagic.com/issues/show_bug.cgi?id=985
- d-bugmail puremagic.com (20/20) Feb 23 2007 http://d.puremagic.com/issues/show_bug.cgi?id=985
http://d.puremagic.com/issues/show_bug.cgi?id=985
Summary: dll-imported functions return values broken
Product: D
Version: 1.006
Platform: PC
OS/Version: Windows
Status: NEW
Severity: critical
Priority: P2
Component: DMD
AssignedTo: bugzilla digitalmars.com
ReportedBy: dbugz mailinator.com
Values retrieved from dll function calls by return, seems to be random garbage.
I have set up extremely simple test case reproducing misbehavior:
0. Extract attached archive to project directory.
1. Compile visualstudio project.
2. Copy dll and lib to projects folder.
3. Run `coffimplib.exe -f dlltest.lib`.
4. Run `make_d.cmd` to compile D test program.
Run test.exe to see if output is, or is not expected:
"dlltest.get_test():123"
--
Feb 19 2007
http://d.puremagic.com/issues/show_bug.cgi?id=985 Created an attachment (id=105) --> (http://d.puremagic.com/issues/attachment.cgi?id=105&action=view) test case Attached test suite reproducing error. --
Feb 19 2007
http://d.puremagic.com/issues/show_bug.cgi?id=985
thomas-dloop kuehne.cn changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
dlltest.h:
dlltest.d:
On 32bit systems dlltest.d should be:
--
Feb 23 2007









d-bugmail puremagic.com 