Reputation: 5959
I have an app that runs well in the IDE, but wont run in the exe form. I have logging, so the app generates the out of memory error at the login form
Login.Show vbModal
Unload Login
In the login load subroutine, this is the code i have there.
m_lsLoginState = Failed
Me.Height = 1815
does anyone have any idea what could be causing th error. The m_isLoginState is an enum variable
Public Enum LoginStates
Failed
Succeed
Quit
End Enum
Upvotes: 2
Views: 3432
Reputation: 5959
I finally found the cause and solution to the problem
It happens that am using manifest file added to the project resources so that when the app compiles, it will show the controls in windows theme.
I then notice that the main form frmMain had this initialization, whereas the login form is shown first.
m_Shell32 = LoadLibrary("Shell32.dll")
Call InitCommonControls
what puzzled me is that the compiled executable has been working like this for a while without any problem.
After much tweaking, i got another error system error &H80070583 (-2147023485)
, when the app executable was launched. This error indicates that it is a manifest problem, leading me to the solution
I solve the problem by moving the code above to the initialization of the login form
Thanks for all you help
Upvotes: 2