[DUG] Delphi 6, win2003 server and DEP

Myles Penlington myles at ams.co.nz
Fri Aug 24 09:15:50 NZST 2007


May not. You prob need to enable - debug spawned processes.

Normally for a dll I just use attach to process, but I don't think that
is an option with a cgi from memory. If I remember correctly, the
cgi/exe is loaded again for every web request, so 10 requests = 10
process id's - I could be wrong however.

 

Myles.

 

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Tracey
Sent: Friday, 24 August 2007 09:01
To: 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] Delphi 6, win2003 server and DEP

 

Its an .exe

 

I run it on Apache/windows

 

Will this still work for exe's?

 

________________________________

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Stephen Barker
Sent: Thursday, 23 August 2007 4:58 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: RE: [DUG] Delphi 6, win2003 server and DEP

 

Tracey,

 

Are you not able to debug your cgi app? Why is that not an option?

 

If it is a setup thing, this is what I use:

Install lightweight web server, e.g. Omni
(http://www.omnicron.ca/httpd/download.html)

In Delphi, Run/Parameters/host application: C:\Program
Files\OmniSecure\OHTTPD.exe

Run the app from Delphi and Omni starts up.

Hit your cgi from your browser.

If it is an ISAPI dll it will now be loaded into ram.

In Delphi, crtl-alt-m, right click on your dll name, reload symbol
table, type in the FULL path prefixing the dll filename.

Hit the cgi again and Delphi should now stop at your breakpoint.

 

This may not be your problem, but I know it took me a while to find the
ctrl-alt-m trick once I moved to XP (and presumably 2003, Vista...).

 

 

Steve

	 

	
________________________________


	From: Tracey [mailto:tracey at logis.co.nz] 
	Sent: Thursday, 23 August 2007 1:40 p.m.
	To: 'NZ Borland Developers Group - Delphi List'
	Subject: RE: [DUG] Delphi 6, win2003 server and DEP

	Debugging??? Right lol

	 

	AFAIK debugging is not an option with my webbroker cgi apps.
This is a run-time issue.

	 

	I run 4 cgi apps on the same apache server, and one of them is
constantly erroring (usually on login unless I have some queued errors
then I cannot even access the login page).  I get Fault Bucket errors in
event viewer.  This issue has only started since we migrated to win2003
server.  Also since that migration I have to use UPX to compress my
.exes before they will run on 2003 (I believe that was related to DEP).

	 

	 

	 

	
________________________________


	From: delphi-bounces at delphi.org.nz
[mailto:delphi-bounces at delphi.org.nz] On Behalf Of Myles Penlington
	Sent: Thursday, 23 August 2007 1:17 p.m.
	To: NZ Borland Developers Group - Delphi List
	Subject: RE: [DUG] Delphi 6, win2003 server and DEP

	 

	Are you saying your app suffers from DEP or only while debugging
do you suffer from DEP?

	 

	If only while debugging then you need D2007. AFAIK, there is no
support/updates available for D7 that relate to DEP. There may be a D7
SOAP only fix, but that is just at run-time issue and if your app is a
cgi, then you are prob not using this (just check the units in use while
debugging to see if the soap units have been compiled in - but even
then, I'm pretty sure that it would require a SOAP call to be made into
your app before the issue shows it head).

	M

	 

	 

	From: delphi-bounces at delphi.org.nz
[mailto:delphi-bounces at delphi.org.nz] On Behalf Of Tracey
	Sent: Thursday, 23 August 2007 01:10
	To: 'NZ Borland Developers Group - Delphi List'
	Subject: RE: [DUG] Delphi 6, win2003 server and DEP

	 

	Nope I mean D7.  Apparently this fix relates to D7 and up, and I
have D7 and D8 (which I will never use again)

	 

	I'd rather not have to purchase 2007

	 

	Im not even sure if the SOAP runtime is relevant, as my app is
just a plain old standalone cgi app.

	 

	
________________________________


	From: delphi-bounces at delphi.org.nz
[mailto:delphi-bounces at delphi.org.nz] On Behalf Of Myles Penlington
	Sent: Thursday, 23 August 2007 12:48 p.m.
	To: NZ Borland Developers Group - Delphi List
	Subject: RE: [DUG] Delphi 6, win2003 server and DEP

	 

	I presume you mean D2007 and not D7? 

	 

	From D2007 onwards (not certain if this also applies to D2006),
then debugger has been changed to avoid DEP issues. 

	And yes I think from memory, there was also path to some of the
SOAP code to also avoid the same issue. A search  of QC should find the
issue and when it was fixed.

	 

	Myles.

	 

	From: delphi-bounces at delphi.org.nz
[mailto:delphi-bounces at delphi.org.nz] On Behalf Of Tracey
	Sent: Thursday, 23 August 2007 12:39
	To: 'NZ Borland Developers Group - Delphi List'
	Subject: [DUG] Delphi 6, win2003 server and DEP

	 

	Hiya

	 

	Does anyone know much about the issue with early versions of
Delphi and win2k3 DEP issues?

	 

	I have been suffering from this I believe for some time and I
really need to overcome it.  I suspect I may be able to upgrade to D7
and apply the Delphi SOAP runtime patch to overcome this but I'm not
entirely sure.

	Attention:
	This communication is confidential and may be legally
privileged.  If you are not the intended recipient, please do not use,
disclose, copy or distribute it, other than to return it to us with your
confirmation that it has been deleted from your system.

	Attention:
	This communication is confidential and may be legally
privileged.  If you are not the intended recipient, please do not use,
disclose, copy or distribute it, other than to return it to us with your
confirmation that it has been deleted from your system.

	 

	No virus found in this incoming message.
	Checked by AVG Free Edition.
	Version: 7.5.484 / Virus Database: 269.12.2/966 - Release Date:
22/08/2007 9:05 a.m.



Attention:
This communication is confidential and may be legally privileged.  If you are not the intended recipient, please do not use, disclose, copy or distribute it, other than to return it to us with your confirmation that it has been deleted from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.adventureeducation.co.nz/pipermail/delphi/attachments/20070824/dc08d595/attachment.html


More information about the Delphi mailing list