Hello Guest it is March 28, 2024, 12:43:32 PM

Author Topic: Mach MAD Plug in (Maintenance and Diagnostics)  (Read 93523 times)

0 Members and 1 Guest are viewing this topic.

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Mach MAD Plug in (Maintenance and Diagnostics)
« Reply #10 on: February 04, 2009, 02:45:37 AM »
Mach4view and the standard engine and trajectory stuff........
fun times

Offline budman68

*
  • *
  •  2,352 2,352
    • View Profile
Re: Mach MAD Plug in (Maintenance and Diagnostics)
« Reply #11 on: February 04, 2009, 11:54:56 AM »
Ok, 2 things real quick for you Scott.

The flash help screen, is there anyway to make that be on top of all windows like a normal help file? Kind of cumbersome to move everything around and resize just to get to it.

Also, when I disable the plug-in and go to exit Mach 3, I get this error in the screenshot below.

Thanks,
Dave

----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    ;)
Re: Mach MAD Plug in (Maintenance and Diagnostics)
« Reply #12 on: February 04, 2009, 12:28:15 PM »
Hi Scott,

Disabled plugins don't get the 'cleanup' callback.  For this reason I never use it any more.  Use ' the 'shutdown' notification instead.

-James

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Mach MAD Plug in (Maintenance and Diagnostics)
« Reply #13 on: February 04, 2009, 09:11:00 PM »
hmmm Hey James, would you elaborate more on how your using Shutdonw notifictaion in the clean up section, or where you use it.

Budman: Flash screen help, no not really, it is ran in windows shell. It is meant to to be read for set up and use. It would be easier to add a second screen monitor.

scott
fun times
Re: Mach MAD Plug in (Maintenance and Diagnostics)
« Reply #14 on: February 04, 2009, 09:25:50 PM »
Hi Scott,

The SHUTDOWN notification is:

#define SHUTDOWN      0x12000e         // Undocumented notification

Here is the MyNotify code from a customer plugin:

   // myCleanUp is NOT called if the plugin config has
   // been disabled while the plugin is loaded.  This
   // will cause a hard crash if the modeless dialog
   // is not destroyed and the Mach3 HWND detached
   // from the CWnd object

   if (message == SHUTDOWN) {

      // Free the form that
      // was created at startup

      if (NULL != FreeForm) {

         (*FreeForm)();

         FreeForm = NULL;
      }

      if (NULL != dlg) {

         dlg->DestroyWindow();

         mach3CWnd.Detach();

         delete dlg;
      }

      dlg = NULL;
   }

-James

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Mach MAD Plug in (Maintenance and Diagnostics)
« Reply #15 on: February 04, 2009, 10:16:57 PM »
Hey James

  Let me Poke a few quesitons at you.
 
  the "#define SHUTDOWN      0x12000e" is this going at
  the top of the .cpp with the includes?
 
   my notify is in this format:
   
   void   myNotify ( int ID)
{
   if( ID == RangeStart )
   {
      dlg->ShowWindow(SW_SHOW);
   }
} //myNotify

not: (message==.....) Can I use Int ID to see the message == shutdown
i.e. if( ID == SHUTDOWN)

 if (NULL != FreeForm) {

         (*FreeForm)();

         FreeForm = NULL;
      }
     
What is "FreeForm" and where does it comefrom/do etc.
do I have to have somthing about it in the header file?

scott
fun times
Re: Mach MAD Plug in (Maintenance and Diagnostics)
« Reply #16 on: February 04, 2009, 10:59:59 PM »
Hi, Yes ID is the same as message.  Ignore FreeForm it is a customer specific function I neglected to remove.  Cut and paste!

Yes, the #define goes up top with the includes.

-James

Offline Greolt

*
  •  956 956
    • View Profile
Re: Mach MAD Plug in (Maintenance and Diagnostics)
« Reply #17 on: February 04, 2009, 11:03:23 PM »
Getting the same error as Dave.

It happens on shut down of Mach, after disabling plugin.

Greg
Re: Mach MAD Plug in (Maintenance and Diagnostics)
« Reply #18 on: February 05, 2009, 12:33:57 AM »
Hey Scott,
fooled around with the plugin,
Im getting the same error when disabling the plugin, just once... no big deal though.

One thing i might suggest is that you remove the ability to tick the checkmark on LED that are not user LED

If for some reason you tick the checkmark even though the LED is turned off, it might be confusing. although it resets if you select another led and go back to the one for which you ticked.
Its no big deal though, just a thought

Great work friend.
Fernando
Re: Mach MAD Plug in (Maintenance and Diagnostics)
« Reply #19 on: February 05, 2009, 03:46:09 AM »
Hi Scott!

very nice, youve mail ..and money ;)

Thanks and best regards

Wolfram