Solved

Delphi 5, TASPMTSObject trouble accessing Response

Posted on 2004-10-07
9
160 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

691 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