Windows NT logging

Mailinglist.ths ths____barco.com
Tue Feb 5 12:11:09 CET 2002


	Hello Frank,

	I've used the following flags to compile agent++ under NT :

	CPP_PROJ=/nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D
"_WINDOWS" /D "_MBCS" /D "AGENT_PP_NATIVE_EXPORTS" /YX  /FD /c /I../include
/I$(SNMP_PP)/include

	and I've switched off SNMPv3.

	Then I took the static_table example and removed everything I don't
need and compiled it with

	CFLAGS	= /YX $(cflags) $(cvarsdll) $(cdebug) -DCACHE_ONLY /D
"NODEBUG" /D "_WINDOWS" \
		  /D "_MBCS" /D "AGENT_PP_NATIVE_EXPORTS" \
		  /D "SNMP_PP_NATIVE_EXPORTS" /FD $(INC)

	It compiled all without any problem. But as soon as an event should
be logged, the program dies.
	I append the source of the agent. It is only 64 lines of code. Could
you please check if it works with
	your agent++ lib ?
	 <<agent.cpp>> 
	Thanks

	Thomas



> ----------
> From: 	Frank.Fock____t-online.de[SMTP:FRANK.FOCK____T-ONLINE.DE]
> Sent: 	Monday, February 04, 2002 10:04:36 PM
> To: 	Mailinglist.ths
> Cc: 	'agentpp-dl____agentpp.com'
> Subject: 	Re: Windows NT logging
> Auto forwarded by a Rule
> 
> Hello Thomas,
> 
> I have never seen this. I am happily using logging on Windows and
> also Purify did not find anything. Have you checked for memory
> faults? Did you rebuild everything with consistent compiler flags and
> settings?
> 
> Hope this helps.
> 
> Best regards,
> Frank
> 
> "Mailinglist.ths" wrote:
> 
> > Hello,
> >
> > I have a problem with agent++ under NT.
> > as soon as I turn on event logging with
> >
> > DefaultLog::log->set_filter(EVENT_LOG,3);
> >
> > The program dies at the first point to do logging.
> > The same works perfectly under Linux.
> >
> > I've used agent++ 3.4.4a and 3.5.1a and snmp++ 3.0j and 3.1.5.
> >
> > Does anyone knows how to get logging under NT ?
> >
> > Thanks
> >
> > Thomas
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: agent.cpp
Type: application/octet-stream
Size: 1302 bytes
Desc: not available
Url : http://lists.agentpp.org/pipermail/agentpp/attachments/20020205/fc819880/attachment.dll 


More information about the AGENTPP mailing list