Unhandled Exception Error. Access Violation 
Author Message
 Unhandled Exception Error. Access Violation

I'm attempting to read information n the ports from the bios as my system
keeps changing the location of LPT1 from one boot to the next....

short GetLPTAddress(short LPT)
{
         unsigned *pp=(unsigned *)0x0408;
         return (short)pp[LPT-1];

Quote:
}

tried all sorts can anyone help???
--
Nigel Smith, Rodent Soundz
(Programming for the Future)


Sat, 05 Jul 2003 14:02:53 GMT  
 Unhandled Exception Error. Access Violation
The hardware is only accessible to device drivers.
Whatever your problem, attempting to access the bios data areas is, in my
opinion, not the solution.

Nick

--


Quote:
> I'm attempting to read information n the ports from the bios as my system
> keeps changing the location of LPT1 from one boot to the next....

> short GetLPTAddress(short LPT)
> {
>          unsigned *pp=(unsigned *)0x0408;
>          return (short)pp[LPT-1];
> }

> tried all sorts can anyone help???
> --
> Nigel Smith, Rodent Soundz
> (Programming for the Future)



Mon, 07 Jul 2003 05:11:37 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Unhandled exception in... (ODBCCR32.DLL): 0x0000005: access violation

2. unhandled exception in someprog.exe (NTDLL.DLL): 0xC0000005: Access Violation

3. unhandled exception in someprog.exe (NTDLL.DLL): 0xC0000005: Access Violation

4. unhandled exception-access violation when debugger hits breakpoint in C++

5. VC6: unhandled exception in MSDEV.EXE (DEVRES.PKG): 0xC0000005: Access Violation

6. Unhandled exception - Access Violation!

7. unhandled exception in msdev.exe (msvcbld,pkg) 0xc0000005 Access violation

8. unhandled exception in someprog.exe (NTDLL.DLL): 0xC0000005: Access Violation

9. Unhandled Exception in MyApp.exe ( MFC42D.DLL ): 0xC0000005: Access Violation

10. Unhandled Exception in fred.exe: 0xC0000005: Access Violation

11. Unhandled exception in ... (MSVCRTD.DLL) 0xC0000005: Access Violation

12. Unhandled exception in MyApp.exe (NTDLL.DLL): 0xC0000005: Access Violation

 

 
Powered by phpBB® Forum Software