Link to home
Start Free TrialLog in
Avatar of skidz
skidz

asked on

Error: Acess Violation.... Reading address 0x408

I need to read the address 0x00000408 for the port address of LPT1. Everytime I try to access that memory in Win95 using pointer, the error prompt out and crashed my system.

How can I access the memory that does not belong to my program?

Thanks.
Avatar of heyhey_
heyhey_

post the code that crashes your system
Avatar of jkr
heyhey - no source code necessary ;-)

You simply CANNOT read (or write) from (to) physical memory addresses under Win32, unless you don't do it in a VXD ...
jkr:
what about old DOS programs ? also, as far as i remember, some guy succeeded to clear the interrupt table (on WIn95 - it does not works on WInNT) - (ok i may be wrong ;-)

probably "crashed my system" means just classic GPF or ??

Well, i wouldn't rely on this... and even if it works, how should he pass the result to a Win32 app?
Avatar of skidz

ASKER

So??? Anyone have the idea to read address 0x408 in Win95?

As JKR write, you can't make in in Windows95 and must write
VXD driver (see Windows Doc or www.vireo.com)
skidz,

use the following VXD-Driver (shareware) to direct-access physical memory from Windows  NT / Windows 95/98, etc.

TVicHW32 3.00

You find it at
http://www.entechtaiwan.com/tools.htm

I've tried it already and it works

regards
Pacman
Avatar of skidz

ASKER

I'm writing a software that need to access the memory address. Anyone cangive me the code to access that memory? I don't want any shareware/freeware product.
skidz:
1.) what languale / library you use ?
2.) do you really need access to memory or just the status of LPT1 ?
3.) explain better your problem ? probably post the code that doesn't work for you ...
> How can I access the memory that does not belong to my program?

In a Windows 95 application, you can't. Period. And even if you could read that memory location and get the port address you couldn't do anything use with the port either.

Please step back and tell us what you're trying to accomplish. There is probably another way.
Avatar of skidz

ASKER

I would like to setup an auto configuration for my LPT port. B'coz the base address of the LPT1 is at 0x408. So ... I just wanna read the memory... please help.

ASKER CERTIFIED SOLUTION
Avatar of plsbctv
plsbctv

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial