Forum Post: RE: Found an interesting way to stop the AVM

Status
Not open for further replies.
P

Peter Judge

Guest
Log it via TS please. Is it any backtick, or just after the Forms. ? -- peter From: pkrikke [mailto:bounce-pkrikke@community.progress.com] Sent: Tuesday, 02 June, 2015 13:30 To: TU.OE.Development@community.progress.com Subject: [Technical Users - OE Development] Found an interesting way to stop the AVM Found an interesting way to stop the AVM Thread created by pkrikke We found an interesting way to stop the AVM dead in its tracks today. Trying to compile or syntax check the code below (in PDS 11.4.0 on Windows 64 bit) stops the AVM and sometimes even crashes PDS completely. It is remarkably difficult to track down an error (caused by fat fingers) such as the one in the code below when it is in a huge class and PDS won't show you what line is causing the error. CLASS StopAVM: CONSTRUCTOR PUBLIC StopAVM ( ): END CONSTRUCTOR. METHOD PRIVATE VOID Okay(): DEFINE VARIABLE oResult AS System.Windows.Forms.DialogResult NO-UNDO. oResult = GetConfirmation(System.Windows.Forms.`BoxButtons:OK). END METHOD. METHOD PRIVATE System.Windows.Forms.DialogResult GetConfirmation(oButtons AS System.Windows.Forms.MessageBoxButtons): RETURN. END METHOD. DESTRUCTOR PUBLIC StopAVM ( ): END DESTRUCTOR. END CLASS. Stop receiving emails on this subject. Flag this post as spam/abuse.

Continue reading...
 
Status
Not open for further replies.
Top