F
Finn Stampe Mikkelsen
I have this problem, that is driving me absolutely crazy...
My Form_Load does not execute clean/completely...
Let me explain what i mean.
Sometimes, i have a situation where my Form_Load eventhandler does not execute at all, so i tried to circumvent that by overloading
the WND_PROC to manually make sure that my Form_Load would execute. In case it allready had executed, it would simply return from
that possible extra call...
I since removed that overload.
Now i experience that my Form_Load does not run the entire structure. It just exits somewhere along the code, sometimes not even
running at all (Possibly due to the fact i removed my overload)...
There is no absolute point where the code exits out of the code... If i remove code from the handler, it might execute more of the
rest, but it is nopt always 1:1 with the lines of code i removed or added..
Can anyone explain to me what is ahppening here ??
Is there a limit to how much i can run in the Form_Load eventhandler (timewise) and if so, how can i make sure my initial code will
run before my UI comes to life?
I am absolute puzzeled over this and though i have tried to read up on it using google or other sources, i cannot find anything on
the matter..
/Finn
My Form_Load does not execute clean/completely...
Let me explain what i mean.
Sometimes, i have a situation where my Form_Load eventhandler does not execute at all, so i tried to circumvent that by overloading
the WND_PROC to manually make sure that my Form_Load would execute. In case it allready had executed, it would simply return from
that possible extra call...
I since removed that overload.
Now i experience that my Form_Load does not run the entire structure. It just exits somewhere along the code, sometimes not even
running at all (Possibly due to the fact i removed my overload)...
There is no absolute point where the code exits out of the code... If i remove code from the handler, it might execute more of the
rest, but it is nopt always 1:1 with the lines of code i removed or added..
Can anyone explain to me what is ahppening here ??
Is there a limit to how much i can run in the Form_Load eventhandler (timewise) and if so, how can i make sure my initial code will
run before my UI comes to life?
I am absolute puzzeled over this and though i have tried to read up on it using google or other sources, i cannot find anything on
the matter..
/Finn