Home > Software engineering >  VB use skinsharp skin after exit the program error
VB use skinsharp skin after exit the program error

Time:10-08

I am a novice, to write a customer management software
This several days learn to use the skin, using a skin sharp, using the normal skin, all the display is normal, but now I found a problem,,,, is to use the end back out of the program, VB will go wrong, and if you don't load is out of normal skin,,, such as online help

Wanted to catch up a figure,,, but couldn't upload the along while have upload, and have to direct description
The following is the main window in the general declaration

Private Declare Function SkinH_AttachEx Lib "SkinH_VB6. DLL" (ByVal lpSkinFile As String, ByVal lpPasswd As String) As Long 'DELL,,

Here is in the main window of the form the load event in the load code skin


SkinH_AttachEx App. Path & amp; "/skin/1. She," "" 'loading skin

Is quit button code, surface, with exit end

Private Sub cmdExit_Click ()
End
End Sub



Error messages are:
0 x0126552 instruction references 0 x0126552 memory, the memory cannot be read.

Order A cites A memory? Two address is the same,,,


Online, such as master, the great god for help

CodePudding user response:

O master, I thank you very much, baidu degrees along while also didn't find the solution, had to come here for a great god, and online, etc

CodePudding user response:

Estimate the skin is your modules with a lot of API, free memory in the exit program when there is a problem, you can try to compile the P code, a lot of time because of problems caused by the API by compiling P code can solve the problem, you can try, if not, only people who write the skin module can solve this problem, or you can find something to use,

CodePudding user response:

Compile the P code what do you mean I don't understand?
I really want to beautify the interface, looking for a few days to try several things, found that the effect is best,, since have to use the stuff I would like to use, to writing code to beautify the interface for me the novice is complex,,, or just use this for certain, so,,,,,,,, compile the P code according to my current level this complex not?

CodePudding user response:

Somebody else's software that has been clear about the inside don't END this kind of violence the way

CodePudding user response:

reference 4 floor hpygzhx520 response:
somebody else software that has been clear about the inside don't END this kind of violence the way

+ 1
SKINSHARP has stopped the upgrade, don't like! The skin is the producer egg pain,

CodePudding user response:

END to END process is not a good habit.

CodePudding user response:

The engineering properties of VB a compiler options, there is a set compilation mode,
As for the way you program exits as everyone says should be have a problem, because didn't see any free memory code, if your application does not load anything need to manually release, so, of course, no problem, but now that your program fault appears, then you should check your before exiting should release something out again after first, especially some API allocation of resources, and if you don't take the initiative to release it, even if your program exits, it can take up system resources,

CodePudding user response:

Can try to use the skin controls, direct reference,,

CodePudding user response:

Can use PostMessage close the window, or directly use the unload me. HWND
 Private Declare Function PostMessage Lib "user32" _ 
Alias "PostMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long


Dim retval As Long

Retval=PostMessage (me) HWND WM_CLOSE, 0 & amp; , 0 & amp;)

CodePudding user response:

Skin sharp like this, I also encountered similar problems, after each operation error, close the project to open it again,

CodePudding user response:

Yes, when debugging code in the END, is easy to cause no prompt close VB. To unload wait won't,

CodePudding user response:

Thanks to a few good friend are upstairs, the problem has been found, is another piece of code I call another window of a button, equivalent to activate another window, but not uninstall, so in the END at the END of the error, and, later, and then it turned regular after he unloadme,,,, thank you again for you glad,,, my job now is to find code segment enters sells saves management together with my customers right,, too lazy to study, after all, I am a amateur ha ha,,,,,,,,

CodePudding user response:

I also have this problem, who to tell ah, qq, 625743565
  • Related