Solved

Delphi 5, TASPMTSObject trouble accessing Response

Posted on 2004-10-07
9
155 Views
Last Modified: 2010-04-05
I have a set of Active-X Components working inside an ASP application.  Many of them function by directly writing text to the Response object.  Once in a while, we have run into problems where, for no apparent reason, the objects stop being able to access the Response object.  We get a "0x8000ffff - catestrophic failure" error message and cannot do anything.  Once the object is in this state, it has been our experience that nothing short of creating a NEW project and "cut-and-paste"ing the code from one to the other will solve it.

Also, once in this state, we have boiled it down to any access to the "Response" object.  Simply asking for "Response.GetState()" will generate the error.  Meanwhile, there are other objects on the same server, built in the same manner, using the Response object just fine.

Here's the scenario...we need to make a simple mod to the object.  We check it out from VSS and open up Delphi 5.  Make the change, and <poof>...catestrophic failure.  I undo the change that I made...still get the error.  I do a diff via VSS on all files...no differences from the last time the project was checked in (working).  Rebuild the entire project...same error.  Delete all compiled files (dcu, dll, etc) and rebuild...same error.  Undo checkout from VSS...same error!  Unregister and re-register the library...same error!

So then, I get really frustrated, and I create a NEW active-X library, a new component, add all my methods and cut-and-paste the code from the old non-working project to the new one, without changing a thing...unregister the old one, reregister the new one and VOILA!  It works fine now...at least for now!

Can anyone give me some help on how to handle this?

Jim
0
Comment
Question by:jim_kern
  • 3
  • 2
9 Comments
 

Expert Comment

by:rostis
ID: 12256642
Hi!

Windows 2003 Server or Small Business Server???

We have same problems with our old app but only with IIS at servers above.
In my opinion project needs regeneration of Delphi TLB or must be created new one.
0
 

Author Comment

by:jim_kern
ID: 12257136
Actually, our primary server is Windows 2000, but I have observed this behavior on both Windows 2000 Server and Windows XP Pro development machines.

Is there some way to regenerate the TLB file without creating a whole new project?
0
 

Expert Comment

by:rostis
ID: 12258265
No, I do not know other way.
And compile your COM+ project on machine with properly installed IIS (not crashed while installing) and with target-working OS.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:jim_kern
ID: 12258297
I ended up rebuilding my application in Delphi 6 (instead of Delphi 5) and it all works fine.  It was (is) probably a bug in Delphi 5 that caused the problem.

I answered my own question, I guess...now what do I do about the points?

Jim
0
 

Author Comment

by:jim_kern
ID: 13340983
Not sure how to ask for a refund...and if I do, does that mean that the question "gets deleted" to the point that no-one else can see the answer in the future?  I actually have a few questions outstanding for the same reason.

Jim
0
 

Accepted Solution

by:
OzzMod earned 0 total points
ID: 13402284
Closed, 250 points refunded.
OzzMod
Community Support Moderator (Graveyard shift)
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now