OS/2, eCS & ArcaOS - Technical > Applications

General Software Testing

<< < (11/14) > >>

Dave Yeo:
I tried building it with VisualAge 3.08 and os2tk45
Complex.h was missing, I got it from the Visualage includes, along with iostream.h. complexm.lib was missing, I edited it out of the makefile. Almost compiled, I don't know ibmcpp well enough, error was,
...

--- Code: ---Object Modules [.obj]: /base:0x10000  /pmtype:pm  +
Object Modules [.obj]: "fractz.OBJ"
Run File [fractz.*]: "FRACTZ.EXE"
Map File [FRACTZ.map]: ""
Libraries [.lib]:
Definitions File [nul.def]: "fractz.def"
ILink : fatal error LNK1082: lnkods50.exe : stub file not found
NMAKE : fatal error U1077: 'W:\OS2\CMD.EXE' : return code '12'
Stop.

--- End code ---

complex.h seems to be a bunch of math stuff in a class.

Steven Levine:

The executable included in the zip file will never run on a typical modern system.  It's limited to 256 colors.  With more it will eventually trap at or near

FRACTZ.CPP:1369
             pbmi->argbColor.bBlue  =  blTable & 0x000000ff;

because blTable is defined as

FRACTZ.CPP:246
static LONG blTable[256],   // color tables
            alTable[256];

You should be able to get FRACTZ.EXE to build with VAC 3.0.8 using nmake and tweaking the included MAKEFILE.

Since I wanted to see where the trap occurred, I built for debug with:

MAKEFILE:17
FRACTZ.EXE:  \
  fractz.OBJ \
  FRACTZ.RES \
  MAKEFILE
   ICC.EXE @<<
 /B " /pmtype:pm /de"
 /Fe"FRACTZ.EXE"
 fractz.OBJ fractz.def
<<KEEP

and

MAKEFILE:35
{.}.cpp.obj:
   ICC.EXE /J- /Gm /Gf /Ti /C   .\$*.cpp

My testing says stack size had nothing to do with the exception.  However, it
you find you really need a larger stack to support more colors, you can set
the stack size in the .def file with:

FRACTZ.DEF:9
STACKSIZE 0x30000

I'm not sure why your link attempt went wrong.  Probably the linker you attempted to use.  I can link here with either icc.exe or 3.0.8's ilink.

Dave Yeo:

--- Quote from: Steven Levine on June 25, 2024, 11:19:57 pm ---
I'm not sure why your link attempt went wrong.  Probably the linker you attempted to use.  I can link here with either icc.exe or 3.0.8's ilink.

--- End quote ---

Yes, it was using ilink 5.0. My env cmd had %VACPP%\bin towards the end of PATH so it was picking up the wrong ilink.

Martin Iturbide:
Thanks for taking a look at it. I guess that at the end it is not working in modern OS/2/hardware, right?

Regards

Martin Iturbide:
Hello again

Now I tried Lemon. (Musical Notation Recognition Software 1996-01)
- http://hobbesarchive.com/Home/Download?path=/Hobbes/pub/os2/apps/mmedia/sound/LEMON.zip

I run it in ArcaOS 5.1 and it quits with POPUPLOG message, and I even tried "start Lemon.exe" with the same results


--- Code: ---06-25-2024  16:07:04  SYS3175  PID 0076  TID 0001  Slot 008f
C:\HOME\MARTIN\DOWNLOADS\LEMON\LEMON\LEMON.EXE
c0000005
0007aa0d
P1=00000001  P2=00000004  P3=XXXXXXXX  P4=XXXXXXXX 
EAX=00000004  EBX=00000000  ECX=000b5444  EDX=0009cd9c
ESI=00000023  EDI=00000000 
DS=0053  DSACC=d0f3  DSLIM=5fffffff 
ES=0053  ESACC=d0f3  ESLIM=5fffffff 
FS=150b  FSACC=00f3  FSLIM=00000030
GS=0000  GSACC=****  GSLIM=********
CS:EIP=005b:0007aa0d  CSACC=d0df  CSLIM=5fffffff
SS:ESP=0053:000b51b4  SSACC=d0f3  SSLIM=5fffffff
EBP=000b551c  FLG=00010202

LEMON.EXE 0002:0005aa0d
--- End code ---

But some other people tell me it runs fine. Any idea?

Regards

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version