if (REALinRuntime() and REALInDebugMode()) {
// your code here
}
On 13 Nov 2008, at 03:26, Brendan Murphy wrote:
What is the proper way to find out if the application is being run
in the debugger or as a standalone application? The method
REALInDebugMode seems to not be working for me. From the
documentation it says...
Determines whether the plugin is executing within a debug
application or not. If the plugin is executing code but the user's
application is not currently running (in debug or release mode),
this function will still return true. The only time when this
function will return accurate results is if REALinRuntime returns
true (meaning that the plugin is executing from a compiled
application instead of from the IDE itself).
This explanation seems rather convoluted. So what is the proper
way to detect this so that I can put my plugin into a demo mode
when running as a compile application without a license? Is there
a bug in the REALInDebugMode method?
(Using RB2008r4.2)
--
http://elfdata.com/plugin/
"String processing, done right"
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>