|
-
Jun 28th, 2012, 10:23 AM
#1
Thread Starter
New Member
VB.NET app won't run correctly the first run
Hello, I work in VB.NET and I really need help.
In brief, the program that I'm working with is designed to run different machines. To test the machines, the user uses program's testgraph. The issue is that sometimes the testgraph won't work (shows blank fields). I noticed, that the graph won't work only the first time the program runs after I reboot PC. However, if I exit the program after the first run and run the program again (without restarting pc), the issue goes away and the test graph works.
Inside a program there are many forms such as frmmain.frm, frmtestgraph.frm etc. It seems like the first time the program runs testgraph form won't load. But it loads after I manually click the button "Test Graph" and then it sits in the memory which allows it to work on the second launch of the program. After rebooting the PC, memory clears and testgraph won't work.
I tried to use breakpoints to compare what code runs when it works and when it doesn't. In two cases the program goes the same paths. However, on the one that works I can see changes when the particular line of code is executed. On the other one, it just goes over the line without making any changes. For example, the following line makes the testgraph button enabled in the working case: frmtestgraph.btntestraph.enabled = true
In the not working case, the same line will still be executed but won't make that button enabled. In other words, I can see that it runs over it by pressing f8 and it won't make any change.
I'm confused and don't know what to do. Any ideas will be greatly appreciated.
Thank you,
Paul.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|