You could probably try writing that code in the method of a class and then create an instance of that class via COM and then call the method that contains the code.
Steeve Gilbert <[EMAIL PROTECTED]> wrote: Hi group, I'm trying to setup something so that the Cross-Reference update is run every night on our Dev instance. I've tried calling the update from a small app that run the COM Connector and calls xRefUpdate::main(new Args(classStr(SysCompileAll))). But when I run it I endup with this : Code execution error: TreeNode object not initialized. Stack trace: (C) \Classes\TreeNode\AOTrefresh (C) \Classes\SysTreeNode\refreshAll - line 17 (C) \Classes\xRefUpdate\run - line 10 (C) \Classes\xRefUpdate\updateAll - line 9 (C) \Classes\xRefUpdate\main - line 18 (C) \Classes\BOAGlobal\UpdateXRef - line 8 Running xRefUpdate::main(new Args(classStr(SysCompileAll))); from an interactive session (aka the normal login way), no problem appears. Anyone tried to do something similar? I appreciate any tip and clue. Have a nice day! Steeve... [Non-text portions of this message have been removed] Sharing the knowledge on Axapta. Visit www.frappr.com/axapta for axapta friends. SPONSORED LINKS Business finance course Business to business finance Small business finance Business finance consultant Business finance magazine Business finance schools --------------------------------- YAHOO! GROUPS LINKS Visit your group "Axapta-Knowledge-Village" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --------------------------------- Varden Morris Senior Developer WellPoint Systems Inc. Microsoft Gold Certified Partner (403) 444-5848 direct (403) 444-3900 main (403) 615-1604 cell www.wellpoint.ca [EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com [Non-text portions of this message have been removed] Sharing the knowledge on Axapta. Visit www.frappr.com/axapta for axapta friends. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/