A few remarks about my massive project
Guys Guys,
Look, I am writing this reply when I didnt test your suggestions from my last reply yet.
but i want some things and facts to be more clear:
1) Dont be afraid of these strange characters, the project is coded for the Hebrew speakers, do i guess you dont have the right fonts, and even if u have hebrew fonts, how many of you know Hebrew? Hebrew is my mother-language.
2) A,B,C,D are just temporary-helping-variables.
All of the other variable named with a special name
that says their stand for.
3) I didnt use functions by now, because I didnt need them
yet. I'm sure I will use functions in the next develop- Step, when the computer will have to think on the right
move again the human-player.
(For those who knows how to play the BackGammon Game)
4) I didnt use Image-Boxes because I'm not sure you can
drag them using the MouseDown,MouseMove,MouseUp events.
5) I will try your suggestions right now, the code for the
lines, and the "Unload Me".
Although I think I already tried something like:
"Unload MainForm". I'm not sure the "Unload Me" will
unload the controls made at design-time, But I will try.
6) That's all for now, I'm going to check your suggestions
now. I will reply again in about 1 hour from now.
(I want to test your suggestions very hard).
Thanks again for your suggestions,
Lior, A desperated Israeli programmer that has been given
a hope by all of you.
I tried your suggestions and...
Guys,
I checked your suggestions and I tried 3 things:
1) I tried the "Unload Me" when the controls were made at
design-time, and It really didnt steal any system
resources, BUT is slowed down the whole system after 4
times of running the compiled EXE !!
2) I switched all of the controls to be created at run-time
and then I tried the "Unload Me" - I got the same result:
No system resources stole, but the WHOLE system was
very very very slowed down after about 4 times of
running the EXE.
3) I tried Kadaman's method, to replace the 120 line
controls with Line Method, Well Kadaman, The code you
wrote was not ok in my project, BUT you gave me a great
idea!!! you saved me from loading 120 Line Controls!
REAL THANKS. The time now here in Israel is over
midnight, so I guess I will handle this tommorow.
4) When I ran the EXE and found out if slows down the
system terribly, I tried to delete the EXE through
DOS window, I got the error message: "Access Denied".
It's because the program is still existing in the memory.
Does some1 know how to terminate an open program?
5) I was thinging of trying to use the Image-Boxes Instead
of the Picture-Boxes, But, I am not sure image boxes are
draggable, I will try it tommorow, The time now is 2 AM.
Good Night (for the people who are going to sleep now),
And Try answer my question.
Thanks Again,
Lior. An Israeli Programmer.