Solved

Delphi 5, TASPMTSObject trouble accessing Response

Posted on 2004-10-07
9
157 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

786 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