Solved

OnEndPage method failed

Posted on 2001-08-21
13
1,189 Views
Last Modified: 2008-03-03
Hello,

  I am using one of my ActiveX Server components (developed with ATL COM wizard in Visual C++). But when I try to run it, I get the following error,

error '800706be'
/dencom_web/detailed_workload/duane.asp, line 10
Active Server Pages error 'ASP 0194'
OnEndPage Failed
/dencom_web/detailed_workload/duane.asp
An error occurred in the OnEndPage method of an external object.

Any ideas as to how to fix this error?
0
Comment
Question by:dbdoshi
13 Comments
 
LVL 20

Accepted Solution

by:
jitganguly earned 13 total points
ID: 6411069
Not very sure. But look for the code in OnEndPage. May be you are trying to destroy an (multiple) objects which does not exists. What is there in line 10 ?
MSDN says
"You must use the OnEndPage method to free copies of objects stored by the OnStartPage method and any other resources that do not need to persist beyond current script processing."

So may be some of the objects are already freed and and your are trying to free it again. Check that in OnEndPage code
0
 

Author Comment

by:dbdoshi
ID: 6411553
Actually, I have a user defined function in my component. When this method
is minimal, it does not give me the error, but when I do lot of stuff (like socket connections, string
manipulations, file I/O) it is giving me the error.

My OnEndPage code is as below. I have not made any changes to the default code provided by the wizard.

STDMETHODIMP Cdoshi::OnEndPage ()  
{
     m_bOnStartPageCalled = FALSE;
     // Release all interfaces
     m_piRequest.Release();
     m_piResponse.Release();
     m_piServer.Release();
     m_piSession.Release();
     m_piApplication.Release();

     return S_OK;
}
0
 

Author Comment

by:dbdoshi
ID: 6422014
Thanks. Actually the error was in my user defined function (when I was manipulating strings) and I was not handling memory allocations well. But somehow the error was returned as being in the OnEndPage method.
0
 
LVL 20

Expert Comment

by:jitganguly
ID: 6422381
dbdoshi,
WHy C ?
I know I could not give you a proper solution, but then you could delete this q. Getting a 'C' is insult ( at least I think it that way). Rememebr this is a free service and I spent some tiem to solve your problem.
Please ask CS to change the grade to A or B or I will ask them to change this from my answer history
0
 

Author Comment

by:dbdoshi
ID: 6422830
Hey, the grade is no way related to your knowledge.. :) I know you answer a lot of questions ( probably some of mine in the past) and your help is truly appreciated. I gave a "C" not because of I suspected your answer, but the problem was completely unrelated to the solution. I did not delete the question because you DID HELP.. :) But sure, if you want B or A, please go ahead and get it changed. I don't mind it. Sorry, if it seemed insulting, that was not my intention.
0
 
LVL 3

Expert Comment

by:modder
ID: 6422881
Hi dbdoshi,

Thank you for your response. If something like that happens, don't hesitate to post a question in CS. We can help you do things that you cannot normally do in EE, like reduce the points, for example.

In this case it might be a good idea to reduce the points..... You decided the give jitganguly a "C", which gives 'em 50 points. What I will do is reduce the points to 13, and change the grade to "A". That way, jitganguly still gets the same 50 (well, 52) points, you get some of your points back, the grade is better, and everyone's happy.....

In short, don't be afraid to ask for assistance, I'll be happy to help.

modder
Community Support
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 20

Expert Comment

by:jitganguly
ID: 6422953
Thanks modder
0
 

Author Comment

by:dbdoshi
ID: 6423026
Hello Modder,

  Please award jitganguly a "B". In hindsight, his answer is correct, though unrelated to my problem. Thanks.
0
 
LVL 15

Expert Comment

by:ameba
ID: 6423298
dbdoshi,

Maybe you should add to your profile:
"If you try helping me, you will be punished."
0
 
LVL 7

Expert Comment

by:John844
ID: 6423370
dbdoshi.  <<Mental note "a name to remember">>
0
 
LVL 20

Expert Comment

by:jitganguly
ID: 6423373
Modder,
Actuall, would you mind deleting this Q from my history. It will make both of us happy.
0
 

Author Comment

by:dbdoshi
ID: 6424919
Hey, John844 and ameba, you guys are out of your minds. Here I am being considerate and you seem to be taking this too far, I already asked to give the grade as jitganguly wanted, so John588, you want to remember my name, well go ahead, **** you.
0
 

Author Comment

by:dbdoshi
ID: 6424930
I really don't understand why are people getting all riled up for?? If you care to read my earlier posting, you will notice that I already apologized and asked for the grade to be changed. Even Modder appreciated my response. Now these two, John844 is threatening me... John844, eat your words, will ya??
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

12 Experts available now in Live!

Get 1:1 Help Now