web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Crash code example for protect X++ source code (AX2009)

(0) ShareShare
ReportReport
Posted on by 315

Everyone in here are know AX ERP is one open source platform, who has development access right, then he/she can view/add/edit X++ source code.

You know a good solutions is no easy to make it LIVE, the developer join and leave, join and leave...

So we find some way to make some basically protection for my company's AX solutions...

 

All people here must saw one AX client crash or AOS crash dialog for all version of AX(included AX2012 R3)

So i want to collect all code example which run it must be make the client or AOS crash!

I want to write those code in some where to prevent some developer 'COPY' the appl file when he/she leave our company..

 

Brothers, please share your mischievous X++ code here, and i just want your 'masterstroke' become an useful things. Those code for AX2009 version are better, for AX2012 version also welcome.

 

Thanks!

*This post is locked for comments

I have the same question (0)
  • dolee Profile Picture
    11,279 on at

    Hi,

    Adopt version control and follow deployment best practice. Also, setup suitable testing scheme when apply changes. These will go a long way on keep the system healthy and running.

    I have doubt over the direction you are going, but I probably just need some enlightening. =D

  • Martin Dráb Profile Picture
    237,970 Most Valuable Professional on at

    How crashing an application is going to protect your intellectual property? It doesn't make any sense to me.

    If you allow anybody to work with source code (and that's what developers definitely need), he or she might make a copy. You can split your solution to smaller parts, so individual people don't see the whole thing, if it's manageable. I also know that some companies have very strict rules trying to prevent people to take away anything.

    Nevertheless hiring more reliable people definitely should be a part of your strategy.

  • AX Lover Profile Picture
    315 on at

    Hi Martin,

    Thanks your suguestions.

    Although my idea is weird, but in AX platform internally, this is the last line of defense for who copy the appl file away, more IT strict rules in some condition become no security...Just like the Wallet Stolen in London(NO infrared alarm equipment in treasury internal)

  • Martin Dráb Profile Picture
    237,970 Most Valuable Professional on at

    Please, can you explain to me how crashing an application prevents copying an application file or source code? I still don't understand it.

  • AX Lover Profile Picture
    315 on at

    Sorry, I just want to keep it as a secret...

    I have such MUST crashing code in AX2009 with Oracle DB, but when we change DB to MSSQL, those code does work any more...

    So i look for some example in AX2009 with MSSQL DB

    Just a tips, for my MUST crashing code with Oracle DB is a very normal X++ code, but i found one thing very interesting in a testing long time ago...

    Normal case(No crashing)

    line 100   logic A

    line 101   logic B

    Crashing case

    line 100   logic B

    line 101   logic A

    if i don't speak it out, no developer note such simple logic has such using

  • Martin Dráb Profile Picture
    237,970 Most Valuable Professional on at

    Well, if what you're doing is secret, then I don't know what help did you expect. I obviously can't offer any solution for a secret problem.

  • AX Lover Profile Picture
    315 on at

    Thanks all the same.

  • Verified answer
    AX Lover Profile Picture
    315 on at

    I maked a special form to make it work again, no coding... thanks.

    The way what i do is write some condition to check the AX is running in a defined environment, if not then i will call this form, the client crashed..

    Still the old point, all this validation code are normal, the crashing form is no compile error or warning, so if i don't speak it out, no one note such simple logic has such using

    this form will not show in user UI, so this will not affect the production environment.

  • Martin Dráb Profile Picture
    237,970 Most Valuable Professional on at

    Aha, so you're trying to prevent people to access any code (not just yours) even if they have bought a developer license. Your customers and business partners will surely love you if you prevent them from making any customizations.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans