home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / vms / 12831 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  2.2 KB

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