Re: AgentX Subagent send trap problem under Win32

"Stefano Pagani" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <00a501c5b38f$e27c4f60$9f00a8c0@stefano>
I'm sorry,
I found the error:
(void *)&selpA

StePa


  Hi,

  I have an AgentX Subagent running under Win32.
  When I try to send a trap I became an error:
  Unhandled exception in subagent.exe: Access Violation.

  The problem appears when I try to add a variable to the trap variable list:
      snmp_varlist_add_variable(&var_list,
          selpA_oid, OID_LENGTH(selpA_oid),
          ASN_INTEGER,
          (void *)selpA,
          sizeof(selpA));

  I use a similar subagent under uClinux, and it Works.
  What do I wrong under Windows?

  thanks for the help
  StePa
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.