When creating automation varibale the navision 2009 client is closed :(

I am really new to Navision + .NET developments. If you guys can help me to solve this im really glad to you.

I have created a code unit in the Nav 2009 Classic With Microsoft SQL server. The code unit as follows:

The method is called "Initeditor()"

IF ISCLEAR(RTFAutomation) THEN

IF ISSERVICETIER THEN
result := CREATE(RTFAutomation,TRUE,TRUE);
ELSE
result := CREATE(RTFAutomation,TRUE);

This method is called by New Navision 2009 client. But when creating the Instance of automation variable the client is closed. I don’t know what is the reason.

Can Anyone give me a trick for solve this issue please…

Hi Chamal,

Does it close without any error message? And what about your error log?