View unanswered posts | View active topics It is currently Mon Apr 20, 2026 6:14 am



Reply to topic  [ 10 posts ] 
 Windows 7/Vista problems with TWXProxy? 
Author Message
Lieutenant J.G.
User avatar

Joined: Sun Mar 13, 2005 3:00 am
Posts: 387
Location: USA
Unread post Windows 7/Vista problems with TWXProxy?
In doing some research into this hard to diagnose bug in my and even the trunk version of TWX with Win 7.

I can confirm the error I have recently compiled the trunk version running it locally and all has been fine for over
4 days (albeit I have not opened the script window) but I decided to take the plunge tonight and open the script window
w/o running a script, TWX Promptly dies in about 5 minutes on Win 7 with the infamous 0x0000BABE access error.

I have looked into the Win 7 SDK and they state that they have "improved the generic dialogs" in Vista and Win 7.

I can no longer confirm that this same crash happens on Vista but that gives me some ideas.

I am not too sure how we could link to the old version Comctl32.ocx which I think worked under 2.04 but now is causing
us problems under Vista/Win 7 or 64 bit I am not sure which of the combinations is the guilty party.

Does anyone have any ideas how we could either alias our OpenDialog to a library that we know worked (Comctl32 comes to mind)

I also need some testers to try it out on Vista 32 bit and 64 bit and see if they also experience the crash, It shouldn't take that long 5-10 minutes is all it took for me to crash TWXProxy.
Open from taskbar right click select Scripts menu and then hit the cancel button, from there wait 5-10 minutes and it should crash.

If my suspicions are correct it is because vista/Win 7 have depreciated the old dialog controls and we need to find a replacement.

_________________
Find out just what any people will quietly submit to and you have the exact measure of the injustice and wrong which will be imposed on them. Frederick Douglas


Sat Nov 14, 2009 8:32 pm
Profile ICQ
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post Re: Windows 7/Vista problems with TWXProxy?
Hello Maniac,

If you still require a tester, you can e-mail me and give me a rundown to what you want, etc. I'll need the twxproxy as well so if there is a link to download I can grab it or you can attach it. Daala runs Vista 32 Premium, I'm on Vista 32 Basic. We'd be more than happy to help out.

Cheers

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Sat Nov 14, 2009 8:46 pm
Profile
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Windows 7/Vista problems with TWXProxy?
Quote:
Does anyone have any ideas how we could either alias our OpenDialog to a library that we know worked (Comctl32 comes to mind)


I think we're going to have to abstract out the class, and then either translate between old calls
and the new class, or write a new one from scratch.

I believe there are a few alternate classes. Take a look at Lazarus and FPC's dialog routines,
they don't rely on MS's com libraries AFAIK.

And yeh, I reached the same conclusions on the deprecated thing. They've made changes in the
new com controls and TWXproxy hates it.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Last edited by Singularity on Sat Nov 14, 2009 11:10 pm, edited 1 time in total.



Sat Nov 14, 2009 11:09 pm
Profile ICQ WWW
Veteran Op
User avatar

Joined: Mon Jun 16, 2003 2:00 am
Posts: 639
Location: USA
Unread post Re: Windows 7/Vista problems with TWXProxy?
glad someone is trying to work on this.

I dont have vista or I would try to help ya out.


Sat Nov 14, 2009 11:09 pm
Profile ICQ
Lieutenant J.G.
User avatar

Joined: Sun Mar 13, 2005 3:00 am
Posts: 387
Location: USA
Unread post Re: Windows 7/Vista problems with TWXProxy?
First off thanks for all the offers to help.

I have uploaded my compiled version of TWX-Proxy that is based on the Trunk version.
Compiled with Delphi 2006 under Win 7 64 bit. (IIRC Delphi does NOT have a 64 bit compiler yet so it must be a 32 bit exe)

I also noticed something from last night's crash.... the dialog box about TWX-Proxy has crashed and what do you want to do
I selected end TWX-Proxy. I forgot about it overnight and this morning I tried to compile the version I uploaded I got error about
not being able to write twxproxy.exe. Turns out there were 2 instances of TWXProxy running all night so the program didn't
gracefully close, using the Windows Error dialog. I had to manually open task manager and kill both instances.

My system might be fubared, I don't remember running more than 1 instance of twx in the last week, so I don't know where
the other instance came from.


It is in the SVN source under branches/MANIAC/Compiled-Versions/TWXProxy-Trunk.rar

If there is more interest I might find time to compile an executable against EP's last commit and any of my commits.

Hopefully EP will grant others write access and we can get a few more eyes on the source code.
Attachment:
File comment: This one is a little smaller than the other
one (For the ones that complained about size)
It is compiled on Win7 64 bit against the trunk version.

TWXProxy-Trunk.rar [380.21 KiB]
Downloaded 385 times

_________________
Find out just what any people will quietly submit to and you have the exact measure of the injustice and wrong which will be imposed on them. Frederick Douglas


Sun Nov 15, 2009 8:53 am
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Windows 7/Vista problems with TWXProxy?
Quote:
My system might be fubared, I don't remember running more than 1 instance of twx in the last week, so I don't know where
the other instance came from.


Whenever the error occurs, the program gives a crash msg but leaves an instance of the .exe in memory. Maybe it was
from your previous attempt.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Sun Nov 15, 2009 10:23 am
Profile ICQ WWW
Veteran Op
User avatar

Joined: Mon Jun 16, 2003 2:00 am
Posts: 639
Location: USA
Unread post Re: Windows 7/Vista problems with TWXProxy?
I also have experienced, several times, TWX.exe remaining in memory. As many as 3 or 4 (when only 1 is currently running).

Dont think it matters for our problem though. Could be wrong.


Sun Nov 15, 2009 10:39 am
Profile ICQ
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post Re: Windows 7/Vista problems with TWXProxy?
Maniac,

Downloaded and ran your attachment. Loaded a script to run, then went to load a second and clicked Cancel. TWXProxy stopped responding after around 10 mins just as you predicted. This happened on both Vista Basic and Premium. All we get is the window popping up saying that TWXProxy has stopped responding and all we can do is stop the application and close.

No issues with XP.

Cheers

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Sun Nov 15, 2009 1:36 pm
Profile
Lieutenant J.G.
User avatar

Joined: Sun Mar 13, 2005 3:00 am
Posts: 387
Location: USA
Unread post Re: Windows 7/Vista problems with TWXProxy?
Now I don't think this is related to the TOpenDialog because I have replaced the original one with a replacement and still
get same error in the same time frame.

Is anyone else compiling TWXProxy from source?

Please report on what your using .... i.e. Delphi 7, Delphi 2006, Delphi Lite,

Delphi 2006 added a TrayIcon component to the VCL and I am wondering if that could be it... I am compiling with 2006 version.

Elder took out the old TrayIcon component and substituted something else for it but don't know what yet.

I have narrowed down the time required for error to between 6-7 minutes on my system.

Let me see if I can replace the TrayIcon component with something equivalent.


Edit about half an hour later.....

TrayIcon replacement doesn't stop the error msg either....
but with my dialog box replacement I get a memoryleak error of like 8 bytes will investigate it later.

_________________
Find out just what any people will quietly submit to and you have the exact measure of the injustice and wrong which will be imposed on them. Frederick Douglas


Sun Nov 15, 2009 2:40 pm
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Windows 7/Vista problems with TWXProxy?
Quote:
Now I don't think this is related to the TOpenDialog because I have replaced the original one with a replacement and still
get same error in the same time frame.


If you comment out the open dialog reference and re-compile. you won't get the crash. It's definitely related to the problem. Maybe your replacement is just as fubar. You can click on the tray icon and mess with stuff all day long and not get the crash.

Quote:
Is anyone else compiling TWXProxy from source?


Trunk, BDS 2006.

Quote:
I have narrowed down the time required for error to between 6-7 minutes on my system.


Nod. You read my workup on it? lol

Quote:
TrayIcon replacement doesn't stop the error msg either....


Could've told ya that ;)

Any time you open the open file dialog, the timer starts. It actually does vary a little, but not much. I had it at 5m at one point.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Sun Nov 15, 2009 5:54 pm
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.