Home > Software engineering >  Since the END of painting top menu add END program crashes
Since the END of painting top menu add END program crashes

Time:09-19

Since the draw top food in the form to add
Private Sub Form_QueryUnload (Cancel the As an Integer, unloadmode As Integer)
MsgBox 88
End
End Sub
Collapse, because program with End to End, should consult how to solve the

Convenient debugging resources: http://pan.baidu.com/s/1jIeOSQy

CodePudding user response:

CodePudding user response:

The End statement is replaced by
Shell "taskkill CMD/c/F/IM your exe file name. Exe", vbHide

CodePudding user response:

Why bother with End to End program!
I wrote the program never "End to End the program",

CodePudding user response:

This program is really strange, you press it SubClassWindow () action,
Prior to the start End, made some "UnSubClass () work", or use SendMessage () to send its own window WM_DESDROY news,
All cannot solve the problem,

CodePudding user response:

Visual is not caused by end because the end commented out, on the other side msgbox add breakpoints, so to collapse

CodePudding user response:

To solve the

CodePudding user response:

Breakpoint also collapse , beg you big fairy solve

CodePudding user response:

reference 5 floor chewinggum reply:
visual is not caused by end because the end commented out, on the other side msgbox add breakpoints, so collapse

I won't break down here,
The End commented in MsgBox there to set breakpoints, only the program "CARDS" there,
In the ides of "active window", press F5, can pop-up message box,
After some message box "sure", normal program end,

I think it's because of problems caused by the End,

Suggest the original poster or consider your application have any other question:
Before at the end of the "program", all have the window of the load Unload; New objects, all release (Set XXX=nothing),
It should be to End the program properly, don't have to use the End, also won't cause crashes,

Just now I tried it on, with a simple "SHE", no effect, the collapse as usual...


This "serious problem", is a little confusing,
Run the compiled exe program (though, need not SEH processing, also seems to be no signs of "collapse")

CodePudding user response:

http://bbs.csdn.net/topics/390787357

CodePudding user response:

The sub-health don't tube he, the teacher mean?

CodePudding user response:

The
references to the tenth floor huangjingfeng88 response:
sub-health don't tube he, the teacher is this meaning?

Don't try to the end of the elegant (because it is impossible)
And want to be in bad can't lousy can stall on reforming land!

CodePudding user response:

Since the draw little not intercept the message code, what the uninstall it before the end of the hook

CodePudding user response:


Advertising, use isubclass, can automatically release the subclass, avoid end of debugging, and a subclass is not over to hang

http://www.cnblogs.com/pctgl/articles/3150552.html

CodePudding user response:

Two big fairy, upstairs and see my reply on the 4th floor,

This code, prior to the start End, even if the "to do the corresponding UnSubClass operation", as usual collapse!
But if you let it end of the "natural", but didn't fart matter...

  •  Tags:  
  • API
  • Related