Champak

Upgrade 32bit to 64bit win8.1 and 10 PROBLEM

25 posts in this topic

#1 ·  Posted (edited)

Took forever, but I finally did it. Now I have a few problems. First thing is Run wont start the program, but I'm getting a PID result. The entire folder structure and code is the same after the upgrade.

If Not ProcessExists("INM DB Meter.exe") Then
    $rr = Run(@ScriptDir & "\Extend\INM DB Meter.exe")
    If @error Then
        MsgBox(0,0,$rr)
    Else
        MsgBox(0,1,$rr)
    EndIf

EndIf

 

 

Edited by Champak

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

This is not related to 64-bit or 32-bit at all. Run ONLY returns the PID or 0 if there was an error.. Silly me >_<.

It is not AutoIt's fault. INM DB Meter.exe is exiting immediately after launching, it might be the switch from 32 to 64 bit. Have you tried launching the program manually? Does it work that way?

Edited by TheDcoder

Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites

Get rid of Windows 8 and upgrade to 10 or 7.

Probably not the solution you, and others, want to see but 8 is absolute garbage.

Share this post


Link to post
Share on other sites
Just now, InunoTaishou said:

want to see but 8 is absolute garbage.

I have been using Windows 8(.1) for a long time and I do not have any issues what so ever ;).


Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites
38 minutes ago, TheDcoder said:

Have you tried launching the program manually? Does it work that way?

Yes, that's the only way it works.

Share this post


Link to post
Share on other sites

Is INM DB Meter.exe 64-bit?


Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites

Neither is 64bit.

Share this post


Link to post
Share on other sites

Hmm.... Did you check if the launched program is running in the background? You can use ProcessExists to do this.
 


Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites

Yes, I looked in task manager, and use processwait. ProcessWait is the next issue, because I have the timeout set, and it just sits there forever.

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Try this code:

If Not ProcessExists("INM DB Meter.exe") Then
    $rr = Run(@ScriptDir & "\Extend\INM DB Meter.exe", @ScriptDir & "\Extend, @SW_SHOW")
    If @error Then
        MsgBox(0,0,$rr)
    Else
        MsgBox(0,1,$rr)
    EndIf
EndIf

 

Edited by TheDcoder
Forgot to terminate a string

Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites

#11 ·  Posted

Nope

Share this post


Link to post
Share on other sites

#12 ·  Posted

Did you make the .exe? Try putting in some debugging code to see where it's stopping.

Share this post


Link to post
Share on other sites

#13 ·  Posted

errr... I hope you have corrected my code before testing :sweating:. I forgot to insert the final quote to close the string.


Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites

#14 ·  Posted

I know where it's stopping, it's not launching the program. And it seems to be other files as well. Here's what I just found out and I dont know how to fix it. I put the program in a external hard drive and linked to it with the full path and it launched with no issue. I put it back in the original folder and put the full path and again it still wont launch. The original path is a folder on the desktop.

 

and yes, I put the quote in at the end thanks.

Share this post


Link to post
Share on other sites

#16 ·  Posted

2 hours ago, Champak said:

I know where it's stopping, it's not launching the program. And it seems to be other files as well. Here's what I just found out and I dont know how to fix it. I put the program in a external hard drive and linked to it with the full path and it launched with no issue. I put it back in the original folder and put the full path and again it still wont launch. The original path is a folder on the desktop.

 

and yes, I put the quote in at the end thanks.

Sounds like a possible permissions issue. Perhaps your external is not NTFS (or the permission is not being copied) and your original folder is. When you upgraded the permissions may have messed up on the folder.

Complete and wild guess but try moving things to a different folder on your regular HDD

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

I fixed the issue. I really don't know how I fixed it. But I started by rolling back my system. Changed how I first initiated the program by running it with admin privilege. I don't know how that helps, because subsequent runs are without admin privilege. I hate gremlins!!

 

Thanks all.

Edited by Champak

Share this post


Link to post
Share on other sites

#18 ·  Posted

Just now, Champak said:

I hate gremlins!!

everyone hates them :P


Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites

#19 ·  Posted

UNBELIEVABLE!!! It happened again!

Step by step on how it happened, maybe someone can see why.

1/ I got a copy of the au3 file of the exact exe I've been running with no issue since I did the role back. I copied it from the old drive to the new one.

2/ Installed AutoIt Scite version

3/ Compiled it because I needed to put a MsgBox in it...no other changes.

4/ Ran the new exe, same thing happened.

5/ Ran the new exe with admin, same thing happened.

So previously all the exe were being launched with no issue, now all of a sudden after compiling a new version, they aren't being launched.

Share this post


Link to post
Share on other sites

#20 ·  Posted

Did you try uncompiled?


Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now