Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order
rr(R)

Homepage E-mail

Berlin, Germany,
23.07.2007, 09:56
 

HX 2.12 vs HT Editor 2.0.8 (DOSX)

HT Editor crashes with "exception caused by access to memory address..." when I try to open, e.g., C:\COMMAND.COM in MS-DOS 6.22. Some other files work fine. Anybody else?

EDIT: URL added :-D

Rugxulo(R)

Homepage

Usono,
25.07.2007, 00:57

@ rr

HX 2.12 vs HT Editor 2.0.8

> HT Editor crashes with "exception caused by
> access to memory address..." when I try to open, e.g.,
> C:\COMMAND.COM in MS-DOS 6.22. Some other files work fine.
> Anybody else?

I have MS-DOS 6.22, so I can test this if you want. However, are you saying it messes up when you view COMMAND.COM or just running HT via COMMAND.COM?

Maybe it's a path bug. Or try running 4DOS (or FreeCOM) as shell and see if the problem disappears.

---
Know your limits.h

rr(R)

Homepage E-mail

Berlin, Germany,
25.07.2007, 12:51

@ Rugxulo

HX 2.12 vs HT Editor 2.0.8

> I have MS-DOS 6.22, so I can test this if you want. However, are you

Please do so! :-) I fear Japheth seems not to be interested in this issue.

> saying it messes up when you view COMMAND.COM or just running HT via
> COMMAND.COM?

It crashes when loading COMMAND.COM (or some other binary files) for viewing.

> Maybe it's a path bug.

I don't think so.

Japheth(R)

Homepage

Germany (South),
26.07.2007, 14:14

@ rr

HX 2.12 vs HT Editor 2.0.8

> Please do so! :-) I fear Japheth seems not to be interested in this
> issue.

Yes, I'm quite interested, but since it's apparently a problem for MS-DOS 6.22 only I think it's negligible :) .

---
MS-DOS forever!

rr(R)

Homepage E-mail

Berlin, Germany,
26.07.2007, 14:58

@ Japheth

HX 2.12 vs HT Editor 2.0.8

> > Please do so! :-) I fear Japheth seems not to be interested in this
> > issue.
>
> Yes, I'm quite interested, but since it's apparently a problem for MS-DOS
> 6.22 only I think it's negligible :) .

Sorry to prove you wrong, Japheth.

C:\TEMP>hxldr32
HXLdr32 V1.9.1 installed. Win32 console apps may possibly run now in DOS

C:\TEMP>ht ht.exe

dkrnl32: exception C0000092, flags=0 occured at BF:372C2D
        ax=325F48 bx=8000 cx=3261E2 dx=3783E0
        si=4 di=34721D bp=325F60 sp=325F48
        ip = Module 'msvcrt.dll'+2BC2D
dkrnl32: fatal exit!

C:\TEMP>


Done in Bochs 2.3 booting a clean MS-DOS 6.22. Same for VC.COM.

For clean FreeDOS 1.0:

C:\TEMP>ver/r

FreeCom version 0.84-pre2 XMS_Swap [Aug 28 2006 00:29:00]
DOS version 7.10
FreeDOS kernel build 2036 cvs [version Aug 18 2006 compiled Aug 18 2006]
C:\TEMP>hxldr32
HXLdr32 V1.9.1 installed. Win32 console apps may possibly run now in DOS
C:\TEMP>ht ht.exe

dkrnl32: exception C0000092, flags=0 occured at BF:372C2D
        ax=325F48 bx=8000 cx=3261E2 dx=3783E0
        si=4 di=34721B bp=325F60 sp=325F48
        ip = Module 'msvcrt.dll'+2BC2D
dkrnl32: fatal exit!
C:\TEMP>

Japheth(R)

Homepage

Germany (South),
26.07.2007, 15:11

@ rr

HX 2.12 vs HT Editor 2.0.8

> Sorry to prove you wrong, Japheth.

But it was you who gave this information:

> HT Editor crashes with "exception caused by access to memory address..."
> when I try to open, e.g., C:\COMMAND.COM in MS-DOS 6.22. Some other files
> work fine. Anybody else?

:confused:

what's also confusing is that the errors in the post above are exceptions C0000092h, which is - according to Win32 docs - a floating point stack exception, while the exception in the original post is a page error (exc 0Eh).

:confused::confused::confused:

---
MS-DOS forever!

rr(R)

Homepage E-mail

Berlin, Germany,
26.07.2007, 15:19

@ Japheth

HX 2.12 vs HT Editor 2.0.8

> > HT Editor crashes with "exception caused by access to memory
> address..."
> > when I try to open, e.g., C:\COMMAND.COM in MS-DOS 6.22. Some other
> files
> > work fine. Anybody else?
>
> :confused:

You didn't notice "e.g." and "some other", did you? :-D I just gave C:\COMMAND.COM as an example for a default DOS installation.

Of course, HT also crashes on other files. Mostly "binary".

Sorry for being "inexact" ambiguous.

rr(R)

Homepage E-mail

Berlin, Germany,
27.07.2007, 10:09

@ Japheth

HX 2.12 vs HT Editor 2.0.8

> what's also confusing is that the errors in the post above are exceptions
> C0000092h, which is - according to Win32 docs - a floating point stack
> exception, while the exception in the original post is a page error (exc
> 0Eh).

OK, here's a new error message:

dkrnl32: exception C0000005, flags=0 occured at BF:4E0090
        ax=3246E0 bx=1 cx=0 dx=90 20 2007
        si=0 di=1 bp=324BBD sp=3246E0
        exception caused by access to memory address 24148903
        ip = Module 'ht.exe'+E0090
dkrnl32: fatal exit!


Done in Bochs 2.3 with MS-DOS 6.22 after getting exception C0000092.

It might be related to the MinGW development environment, because sometimes I get similar errors with my own Mutt/Win32 project. I'll try to make HT build with Visual C++ 2005 Express and post results here.

rr(R)

Homepage E-mail

Berlin, Germany,
27.07.2007, 11:43

@ rr

HX 2.12 vs HT Editor 2.0.8

> sometimes I get similar errors with my own Mutt/Win32 project. I'll try to
> make HT build with Visual C++ 2005 Express and post results here.

Sorry, I give up on cstream.cc now. It's a rather complicated task for a novice. :crying:

Japheth(R)

Homepage

Germany (South),
27.07.2007, 12:15

@ rr

HX 2.12 vs HT Editor 2.0.8

> Sorry, I give up on cstream.cc now. It's a rather complicated
> task for a novice. :crying:

If you like chess, you possibly know this: Noone ever won a game by giving up. :-D

---
MS-DOS forever!

Rugxulo(R)

Homepage

Usono,
03.08.2007, 05:16

@ rr

HX 2.12 vs HT Editor 2.0.8

> > I have MS-DOS 6.22, so I can test this if you want. However, are you
>
> Please do so! :-) I fear Japheth seems not to be interested in this
> issue.

Sorry, I've been busy / distracted lately. I'll test it soon.

---
Know your limits.h

Rugxulo(R)

Homepage

Usono,
05.08.2007, 05:27

@ Rugxulo

HX 2.12 vs HT Editor 2.0.8

> > > I have MS-DOS 6.22, so I can test this if you want. However, are you
> >
> > Please do so! :-) I fear Japheth seems not to be interested in this
> > issue.
>
> Sorry, I've been busy / distracted lately. I'll test it soon.

Okay, first of all, HT 2.0.8 is precompiled as a Win32 binary only (and src, too), but I was unable to compile via DJGPP (maybe b/c no flex or bison installed?? I dunno). Anyways, it needed MSVCRT.DLL, so I didn't really have that on my old cpu (only old old MSVCRT20.DLL from Win95, heh, didn't work even when renamed, oh well).

Not that it compiled for me, but it supposedly used to compile with DJGPP (see 0.7.5 prebuilt binary), so at worst, just use that for now. ;-)

What does this program do exactly besides fancy .EXE multi-header view, hex editing, disassembling, etc.? ("analyze" ... show potential regs??). It doesn't do (much else) that BIEW doesn't, does it?

I guess I could later test HT-2.0.8 + HXRT on my Win XP cpu w/ its own newer MSVCRT (with its included files for WinME bootdisk or maybe even DOSBox 0.71), but that probably won't work either. :-|

---
Know your limits.h

rr(R)

Homepage E-mail

Berlin, Germany,
05.08.2007, 21:13

@ Rugxulo

HX 2.12 vs HT Editor 2.0.8

> Okay, first of all, HT 2.0.8 is precompiled as a Win32 binary only
> (and src, too), but I was unable to compile via DJGPP (maybe b/c no flex

DJGPP port is broken. That's why I called this thread "HX vs HT Editor". ;-)

> or bison installed?? I dunno). Anyways, it needed MSVCRT.DLL, so I didn't
> really have that on my old cpu (only old old MSVCRT20.DLL from Win95, heh,
> didn't work even when renamed, oh well).

Copying MSVCRT.DLL should be easy.

> What does this program do exactly besides fancy .EXE multi-header view,
> hex editing, disassembling, etc.? ("analyze" ... show potential regs??).
> It doesn't do (much else) that BIEW doesn't, does it?

That's right.

Rugxulo(R)

Homepage

Usono,
09.08.2007, 01:49

@ rr

HX 2.12 vs HT Editor 2.0.8

> > Okay, first of all, HT 2.0.8 is precompiled as a Win32 binary
> only
> > (and src, too), but I was unable to compile via DJGPP (maybe b/c no
> flex
>
> DJGPP port is broken. That's why I called this thread "HX vs HT
> Editor". ;-)

The DOS port has been officially abandoned since 0.7.5. (However, I've been told it doesn't need flex or bison, but I still haven't tried compiling again yet. Supposedly, the author just opened RHIDE, added all files, and then compiled.)

Actually, I couldn't get it to compile in Damn Small Linux (0.33) either (GCC/G++ 3.2.3), so I dunno really. It mostly compiled but bombed out on that blasted "analyser". :-|

EDIT: The author uses Cygwin to compile.

> > or bison installed?? I dunno). Anyways, it needed MSVCRT.DLL, so I
> didn't
> > really have that on my old cpu (only old old MSVCRT20.DLL from Win95,
> heh,
> > didn't work even when renamed, oh well).
>
> Copying MSVCRT.DLL should be easy.

I did that today (WinXP P4 cpu), copied MSVCRT.DLL (343k) and put \BIN\*.* from HXRT.ZIP and HXGUI.ZIP (just in case), then tried running HT 2.0.8 from within DOSBox 0.71. It kinda sorta loaded up okay (except weird extended ASCII chars), but always bugged out "wrong magic/format" when opening anything. And it did crash a few times (e.g. "exception C0000005", IIRC). And it didn't work in Wine 0.9.22 (Damn Small Linux 0.33) either.

> > What does this program do exactly besides fancy .EXE multi-header view,
> > hex editing, disassembling, etc.? ("analyze" ... show potential
> regs??).
> > It doesn't do (much else) that BIEW doesn't, does it?
>
> That's right.

BIEW is better for normal use. I still don't understand the huge advantage / usefulness of the "analyser". :confused:

---
Know your limits.h

rr(R)

Homepage E-mail

Berlin, Germany,
09.08.2007, 10:26

@ Rugxulo

HX 2.12 vs HT Editor 2.0.8

> > DJGPP port is broken. That's why I called this thread "HX vs HT
> > Editor". ;-)
>
> The DOS port has been officially abandoned since 0.7.5. (However, I've

Yes, I know.

> been told it doesn't need flex or bison, but I still haven't tried
> compiling again yet. Supposedly, the author just opened RHIDE, added all
> files, and then compiled.)

That's exactly, what Sebastian Biallas told me. :-P

rr(R)

Homepage E-mail

Berlin, Germany,
09.08.2007, 10:32

@ Rugxulo

HX 2.12 vs HT Editor 2.0.8

> opening anything. And it did crash a few times (e.g. "exception C0000005",

Could this be the problem, Japheth? see Re: [Mingw-users] The application failed to initialize properly(0xc0000005)

rr(R)

Homepage E-mail

Berlin, Germany,
17.08.2007, 13:26

@ rr

HX 2.12 vs HT Editor 2.0.8

> HT Editor crashes with "exception caused by
> access to memory address..." when I try to open, e.g.,
> C:\COMMAND.COM in MS-DOS 6.22. Some other files work fine.

With current HXRTD and HT 2.0.9 I get the following error message, when selecting mode "some statictext".

dkrnl32: exception C0000005, flags=0 occured at BF:36FAE3
        ax=3248CC bx=681360 cx=0 dx=2
        si=324900 di=D002FDF9 bp=15014DC sp=3248CC
        exception caused by access to memory address D03AA735
        ip = Module 'msvcrt.dll'+28AE3
dkrnl32: fatal exit!

Japheth(R)

Homepage

Germany (South),
17.08.2007, 19:58

@ rr

HX 2.12 vs HT Editor 2.0.8

> With current HXRTD and HT 2.0.9 I get the following error message, when
> selecting mode "some statictext".
>
> dkrnl32: exception C0000005, flags=0 occured at BF:36FAE3
> ax=3248CC bx=681360 cx=0 dx=2
> si=324900 di=D002FDF9 bp=15014DC sp=3248CC
> exception caused by access to memory address D03AA735
> ip = Module 'msvcrt.dll'+28AE3
> dkrnl32: fatal exit!


then don't do that!

it's a bug in HT. :)

I read in the HT help that DGJPP is supported as target. Where is the binary?

---
MS-DOS forever!

Rugxulo(R)

Homepage

Usono,
18.08.2007, 05:53

@ Japheth

HX 2.12 vs HT Editor 2.0.8

> it's a bug in HT. :)

Seriously? (I can't tell.)

> I read in the HT help that DGJPP is supported as target. Where is the
> binary?

I don't think so (unless something changed from 2.0.8 to 2.0.9, highly unlikely). The author told me via e-mail that DJGPP wasn't supported since 0.7.5 (which does have a binary available).

Japheth(R)

Homepage

Germany (South),
18.08.2007, 16:34

@ Rugxulo

HX 2.12 vs HT Editor 2.0.8

> > it's a bug in HT. :)
>
> Seriously? (I can't tell.)

It doesn't expect CRT function localtime() to fail, which is a bit careless.

OTOH, localtime() failed because not all file times are available in DOS (or FAT32?) and hx didn't clear those in Win32 structure BY_HANDLE_FILE_INFORMATION.

---
MS-DOS forever!

Back to the board
Thread view  Mix view  Order
15189 Postings in 1365 Threads, 250 registered users, 12 users online (1 registered, 11 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum