home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!ucbvax!ACAD.DRAKE.EDU!SK89221
- From: SK89221@ACAD.DRAKE.EDU (Sal Kabalani)
- Newsgroups: comp.os.vms
- Subject: Access Violation
- Message-ID: <01GMW2IN9UKO0006DX@ACAD.DRAKE.EDU>
- Date: 28 Jul 92 04:15:36 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 35
-
- >The problem: when my project starts a Wollengong daemon, the daemon
- >exits immediately, with what I believe is an Access Violation error.
- >The daemon is being started with sys$creprc, and I provide a mailbox
- >to write to after the process terminates. Reading the mailbox with
- >sys$qiow, I get the accounting message from the daemons termination,
- >and the final status field is (hex) 1000000C. Since the C (dec 12)
- >is listed as an Access Violation, I assume that's the error, but
- >that 1 way over there makes me wonder, and I don't find any error
- >codes that large.
-
- From my experience, I found that most Access Violation Errors are caused when
- your program tries to access a protected region of memory. The way I understand
- it, one of the uses of protected memory regions is to hold the variable
- ADDRESSES.
-
- Most likely, you are passing a parameter to you routine with the wrong passing
- mechanism. Assuming a LONG My_Var, Passing My_Var by Ref would cause the
- ADDRESS of this variable to be passed, if the routine you are calling expect
- the value of My_Var, then you will get a Memory Access Violation.
-
- Since most High level Language support typing to varying degrees, it is most
- probable that the violation is occuring when calling 1) an external routine, 2)
- a VMS routine (e.g. System Services, RTL, etc)
-
- I know this is not much, but I hope it helps.
-
- .-Sal A Kabalani------------------------+-Internet : SK89221 @ Acad.Drake.Edu-.
- | Supervisor of Operations/Data Systems | |
- | Iowa Network Services | WWIV-link: 12 @ 25555 |
- | 4201 Corporate Drive | Fax-Net : (515) 830-0123/0124 |
- | Des Moines, Iowa 50265 | Phone-Net: (515) 830-0436/0110 |
- | Disclaimer: My opinions are not mine. I dont even know this Sal person. |
- `----------------------- Programmers Do It With a Byte -----------------------'
-
-
-