Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Delphi 5, TASPMTSObject trouble accessing Response

Posted on 2004-10-07
9
Medium Priority
?
162 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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 response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

604 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