?
Solved

Delphi 5, TASPMTSObject trouble accessing Response

Posted on 2004-10-07
9
Medium Priority
?
161 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses
Course of the Month10 days, 2 hours left to enroll

762 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