Author Topic: How to run?  (Read 41462 times)

0 Members and 1 Guest are viewing this topic.

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: How to run?
« Reply #15 on: September 19, 2011, 09:06:39 PM »
The part that is getting to me is the fact there is no error message. At least with an error I have an idea what area to look at.

Right click and go to properties of the file, make sure compatibility mode is off. At this point I am just going to have to try everything I can think of lol.

Also you said the other files open just fine? I am going to double check the code in the program and see what I have in startup :-)

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

PcWinTech.com Forums

Re: How to run?
« Reply #15 on: September 19, 2011, 09:06:39 PM »

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: How to run?
« Reply #16 on: September 19, 2011, 09:13:58 PM »
This isnt going to beat me lol

I have made a special exe for you. It is the same mini monitor but I put message boxes through the whole startup of it.

15 total. Replace the one you have and run this, tell me the last message box you get. From there I will know what section of the code your system is having trouble with :wink:

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline crtcrt

  • PcWinTech Member
  • *
  • Join Date: Sep 2011
  • Posts: 16
  • Karma: 0
Re: How to run?
« Reply #17 on: September 20, 2011, 11:15:42 PM »
Thanks! Nothing is checked on the Compatibility tab in file properties. As for what runs, I know that CleanMem_Settings.exe is OK. I don't know if CleanMem.exe is (no visual). As far as I can tell, all other D/L'd software has ran as expected.

I installed the special build exe in the CleanMem folder (after renaming the original exe). After clicking 'OK' at step 2 it dies.

Hope this helps.

Chris

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: How to run?
« Reply #18 on: September 21, 2011, 10:10:56 AM »
OK I think I know what is going on :-)

I looked what is happening between steps 2 & 3. Since your close after step 2.

IN the program I have a Boolean value bUnloading. THis means that bUnloading is either True or False.

On a normal system when I make a new Boolean its default is false. IN the start up of the program is bUnloading = True then it closes the program.

For some reason, on your system Boolean's are defaulted to true! Or at least I think. This next test will confirm it.

What I did here was set the bUnloading to false before the main window is opened. If this works then I found the problem. Let me know how it goes :wink:

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline crtcrt

  • PcWinTech Member
  • *
  • Join Date: Sep 2011
  • Posts: 16
  • Karma: 0
Re: How to run?
« Reply #19 on: September 21, 2011, 01:48:38 PM »
Unfortunately I got the same results. It died right after step 2 again.

Chris

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: How to run?
« Reply #20 on: September 21, 2011, 02:40:26 PM »
I am going to put more message boxes inside right after step 2 so I can trace it down :-)

I will post with a new exe soon. :wink:

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: How to run?
« Reply #21 on: September 21, 2011, 03:01:40 PM »
OK try this exe :-)

Let me know what the last message box you get is.

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline crtcrt

  • PcWinTech Member
  • *
  • Join Date: Sep 2011
  • Posts: 16
  • Karma: 0
Re: How to run?
« Reply #22 on: September 21, 2011, 04:12:11 PM »
Step 2c, after that it dies.

Thanks,
Chris

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: How to run?
« Reply #23 on: September 21, 2011, 04:23:01 PM »
Right after that message box the main form is called. At the very start of the form I have another message box, which never comes up.
So this means it might be a control on the form causing the shutdown and not code.

I have a few custom controls I made that the main window uses. Now we need to find out which control.

First one will be the tabs.

I have 2 other programs that use the same tab, try these out and tell me if they open
http://www.tweaking.com/content/page/windows_repair_all_in_one.html
and
http://www.tweaking.com/content/page/simple_performance_boost.html

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline crtcrt

  • PcWinTech Member
  • *
  • Join Date: Sep 2011
  • Posts: 16
  • Karma: 0
Re: How to run?
« Reply #24 on: September 21, 2011, 06:31:14 PM »
They both ran just fine. The windows controls worked as expected. I clicked through the different controls and couldn't find or create any issues. I didn't apply any changes though. (But I will take a closer look later  :tongue:)

Again, thank you for your time!

Chris

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: How to run?
« Reply #25 on: September 21, 2011, 06:39:05 PM »
Ok the next custom control is a image list I use. See if this test app runs for you.

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline crtcrt

  • PcWinTech Member
  • *
  • Join Date: Sep 2011
  • Posts: 16
  • Karma: 0
Re: How to run?
« Reply #26 on: September 21, 2011, 07:46:15 PM »
It runs and most of the buttons work and/or do something.
The "Get Picture" button causes a "Subscript out of range" error sometimes depending on the state of the other objects and crashes.
The same thing for the "Save Icon" button but with an "Invalid property value" error.
I assume that's normal for this test case.

The exit button also causes a crash.

The crashes are followed by:
 
---------------------------
vbAccelerator Image List Test Project: TestIls6.exe - Application Error
---------------------------
The instruction at "0x773f65f1" referenced memory at "0x773f65f1". The memory could not be "read".


Click on OK to terminate the program
---------------------------
OK   
---------------------------


Chris

Offline crtcrt

  • PcWinTech Member
  • *
  • Join Date: Sep 2011
  • Posts: 16
  • Karma: 0
Re: How to run?
« Reply #27 on: September 21, 2011, 07:49:24 PM »
One more thing...I just noticed 2 new files were created...Test2.dat and Test.ico

Chris

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: How to run?
« Reply #28 on: September 21, 2011, 08:23:05 PM »
Even though that test app crashed on close, it still opened. Of course it is using a dll where I have the code directly in my program.

The cleanmem settings exe doesn't use the tabs or the image list control that the mini monitor uses. And the settings exe runs fine.

When a form loads all the controls are loaded first, then the start code is ran. The program is never making it to the startup code point. So I still think it is something with a control on it.

Here is something we haven't checked. is DEP enabled on your system?

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: How to run?
« Reply #29 on: September 21, 2011, 08:27:24 PM »
Another control on it is the inet control.

My simple port forwarding app has that control. Can you run that program fine?
www.simpleportforwarding.com

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

PcWinTech.com Forums

Re: How to run?
« Reply #29 on: September 21, 2011, 08:27:24 PM »