[development-axapta] Calling an external process

2010-05-28 Thread m.hentrich
Hi all,

I'm having a little problem, as I have to call an external program, that makes 
watermarks on pdf-files, which afterwards are attached to Axaptas 
documenthandling. WinApi::shellexecute does have a paramter, that tells AX to 
wait for the programme to finish, but the handle to the programme is never set 
in AX. I know there is something about a call to create process in Windows, but 
I am not sure of what I have to do with this. I've found some code-examples on 
the net, but they does not work proberly. Has anybody in this group tried to 
make this work, and how ? :-).

Best regards
Michael Hentrich



Re: [development-axapta] Live AOS failure RPC exception 14 reported in event log many many times per second - any ideas?

2010-05-28 Thread Mike
There is also the windows2003 RPC bug fix that you could try.  The only time I 
have ever heard it working for ax problems involved errors when users printed 
to pdf. 

http://support.microsoft.com/kb/913184

An RPC client cannot connect to an RPC server that is running Windows Server 
2003 SP1, and event ID 180 is logged


From: James Flavell 
Sent: Tuesday, May 25, 2010 8:18 AM
To: development-axapta@yahoogroups.com 
Subject: [development-axapta] Live AOS failure RPC exception 14 reported in 
event log many many times per second - any ideas?


  
Hi everyone

We have an AX4.0 SP2 with kernel 4.0.2503.953

Today the user reported very slow performance and the AOS crashed later on

When we looked in the event viewer there was an error:

Object Server 01: RPC error: RPC exception 14 occurred in session 3

This was logged maybe 50 to 100 times in a single second every second!!!

I searched but could find no mention of RCP 14 error anywhere (including
partner source)

Does anyone have any idea what can cause this error or similar kind of mass
logging in the event viewer every second?

Also I heard the Ax4.0 AOS is likely to crash when the Ax32Serv.exe process
reaches around the 2GB limit. Has anyone heard about this?

Thanks

James

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]



Re: [development-axapta] Live AOS failure RPC exception 14 reported in event log many many times per second - any ideas?

2010-05-28 Thread Mike
I would focus on whatever 3rd party apps you have on that AOS that connect via 
the business connector.  That's going to be the source of an RPC error on the 
AOS.

Yes, the AOS service crashes when it runs out of memory and it runs slow as it 
approaches the upper limits.  You should restart the aos service periodically 
to prevent this from happening.  pick a time of day when it affects the least 
amount of people.  you could even create 2 .bat files with  'net stop AOS$03' 
and 'net start AOS$03' and schedule them to run 2 minutes apart at a time when 
no one is on the system.


From: James Flavell 
Sent: Tuesday, May 25, 2010 8:18 AM
To: development-axapta@yahoogroups.com 
Subject: [development-axapta] Live AOS failure RPC exception 14 reported in 
event log many many times per second - any ideas?


  
Hi everyone

We have an AX4.0 SP2 with kernel 4.0.2503.953

Today the user reported very slow performance and the AOS crashed later on

When we looked in the event viewer there was an error:

Object Server 01: RPC error: RPC exception 14 occurred in session 3

This was logged maybe 50 to 100 times in a single second every second!!!

I searched but could find no mention of RCP 14 error anywhere (including
partner source)

Does anyone have any idea what can cause this error or similar kind of mass
logging in the event viewer every second?

Also I heard the Ax4.0 AOS is likely to crash when the Ax32Serv.exe process
reaches around the 2GB limit. Has anyone heard about this?

Thanks

James

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]