dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] Bugs is present since March 2004 in test, which works


From: Dmitriy
Subject: [Pnet-developers] Bugs is present since March 2004 in test, which works NetFramework 1.0
Date: Sat, 6 Nov 2004 01:31:14 +0500

PNET 6.10 situation is not changed: Emit is not work without saving (emit)
passing struct as value with function pointer fail (wrong function type ? or
address not changed to a wrapper? )(call_back)
if struct passed as reference the address of function is 00F9CFD8 and all
works perfect (call_back2)
if struct passed as value the address of fuction is 00F99FE8 and Error is
"The instruction at "0x00F99FE8" referenced memory at
"0x00000010"" the memory coud not be "written""
(in old test was so, now  in new test it throws strange exception see result
later)

OLD TEST:
Exception: STATUS_ACCESS_VIOLATION at eip=1022BFEE
eax=0022EA80 ebx=01131000 ecx=01131090 edx=0113AE68 esi=1005530B
edi=10036020
ebp=0022EA90 esp=0022EA78 program=D:\Programs\PNET\bin\ilrun.exe
cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0022EA90  1022BFEE  (0000000A, 00000005, 0000000A, 1022BFE8)
0022EAA8  004BE307  (004BDC10, 0022EAD0, 00000010, 00000000)
0022EAE8  004BDE3F  (10099138, 01131000, 00000000, 0022ED50)
0022EDF8  00425796  (10035F60, 1007CF08, 00000000, 00000000)
0022EE28  00412A1A  (10035F60, 1007CF08, 00412800, 0022EED8)
0022EE58  00412E86  (10035F60, 1007CF08, 0022EED8, 0022EEE8)
0022EF10  00401D0E  (00000002, 100201E8, 100200A8, 00000001)
0022EF80  61005DE0  (0022EF98, FFFFFFFF, 00000000, 00245380)
0022FF90  61005EE5  (00000000, 00000000, 00000000, 00000000)
End of stack trace

NEW TEST

Result of call_back test:
Microsoft :
reference a 5 10 003C335E
value a 5 10 003C335E
test of struct reference
in CS callback test 27 157
test of struct value
in CS callback test 27 157
end of tests end
MONO:
F:\My\Projects\t6\pnet_bug\call_back>mono cs.exe
reference a 5 10 011B0700
value a 5 10 011B0700
test of struct reference
in CS callback test 27 157
test of struct value
in CS callback test 27 157
end of tests end

PNET:
F:\My\Projects\t6\pnet_bug\call_back>ilrun cs.exe
reference a 5 10 00F9CFD8
value a 5 10 00F99FE8
test of struct reference
in CS callback test 27 157
test of struct value

Uncaught exception: System.NullReferenceException: The value 'null' was
found where an instance of an object was required
        at testch.Class1.test(Int32, Int32, delegate_wrapper&,
delegate_wrapper)

        at testch.Class1.Main(String[])



> but i need call_back
> But I can try remake programm to pass struct with delegates to native code
> by reference.... if Emit test will work.
>

Attachment: pnet_bug2.rar
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]