Oberon Community Platform Forum
October 14, 2019, 06:26:48 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: WINAPI - old&new compiller bug  (Read 3077 times)
BohdanT
Sr. Member
****
Posts: 271


Life is difficult, but fortunately is short!


WWW
« on: May 04, 2010, 02:54:59 PM »

Both the compilers generates incorrect code:
Code:
MODULE TestWinApi;
IMPORT SYSTEM,KernelLog;
PROCEDURE{WINAPI} TestC*(s:ARRAY OF CHAR);
BEGIN
KernelLog.String("ds= "); KernelLog.String(s); KernelLog.Ln;
END TestC;
PROCEDURE Test*;
BEGIN
TestC("WINAPI");
END Test;
END TestWinApi.Test;
Compiler.Compile TestWinApi.Mod~
PC.Compile TestWinApi.Mod~

Quote from: AosDebug
access violation

TestWinApi.TestC  PC = 43
   s = ""...
TestWinApi.Test  PC = 103
Commands.Runner.@Body  PC = 1074
   @Self = 051115F4H Commands.Runner
Objects.Wrapper  PC = 5203
   lpParameter = 051116FCH Objects.Process
   t = 051116FCH Objects.Process
   obj = 051115F4H Commands.Runner
   type = 4379428
   res = 1
   bp = 56229812
   sp = 56229768
   excpfrm = RECORD 040B70CH
Unknown EIP = 07C80B729H EBP = 0359FFECH
access violation

TestWinApi.TestC  PC = 43
   s = ""...
TestWinApi.Test  PC = 103
Commands.Runner.@Body  PC = 1074
   @Self = 051115F4H Commands.Runner
Objects.Wrapper  PC = 5203
   lpParameter = 051116FCH Objects.Process
   t = 051116FCH Objects.Process
   obj = 051115F4H Commands.Runner
   type = 4379428
   res = 1
   bp = 56229812
   sp = 56229768
   excpfrm = RECORD 040B70CH
Unknown EIP = 07C80B729H EBP = 0359FFECH
Debugger stopped

In the case of LONGINT, etc - everything is normal.
« Last Edit: May 04, 2010, 03:01:55 PM by BohdanT » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!