|
Thanks for your reply! There are some .Create() lines in the main unit, before the TWebModule is created. But if they would crash, the web module's handler woudln't catch them, because, well, it doesn't exist, yet.
The DLL uses the library "Graphics32". I don't think it starts any threads on its own, but it creates many objects. It is only called inside try/except block, of course.
It also uses some Named Pipes to talk to a Windows service running on the same machine. But the crashes occur mostly during request that do not touch those pipes, so they cannot be the cause.
Anyway, the ISAPI application answers between 2 and 4 million requests per day. The EInOutException happens only once or twice a day. When I repeat the failed request later on, it works fine again. That makes it quite tricky to find out what exactly happens.
|
|
|
|
|
Hi Corinna,
As you suggest, it definitely sounds to me like there is some kind of resource and/or thread blocking happening, and those are not exactly the nicest to try figure out.
Although your code/threads may not be responsible/guilty of the blocking, it is unfortunately something that can become a much bigger problem later on Are you executing any other (custom or not) threads as well?
Cheers,
Glen Vlotman
"You cannot code for stupidity"
|
|
|
|
|
The reason why I am asking if you are using your own threads is you can send a message to all your threads to terminate when you get that exception from TWebModule. Just so you know the module will stop. If you need any pointers on how you would need to do that, let me know.
Cheers,
Glen Vlotman
"You cannot code for stupidity"
|
|
|
|
|
Have you managed to figure out where the issue was Corinna?
Cheers,
Glen Vlotman
"You cannot code for stupidity"
|
|
|
|
|
|
Glad to hear that your problem has been resolved.
You can 'force' a thread to terminate using a few techniques. One which I found that works quite well is enabling your thread to listen for a custom message. Once it receives that message the thread can then call the terminate process (and perform whatever cleanups it needs of course).
Hope that helps
Cheers,
Glen Vlotman
"You cannot code for stupidity"
|
|
|
|
|
Hi again Delphi-freak type people like me ...
I would like to propose that we make a concerted effort to get some more Delphi articles posted here.
I am busy working on some (simple) gaming articles for Delphi and even more in-depth "hardcore" type Delphi articles that I want to post here.
I wanna keep the Delphi/Pascal flag flying as high as I can possibly get it to be. Hopefully we might even get a dedicated section for us, complete with a pascal parser for the site itsself!!!
Is anyone else with me on this endeavor?
Cheers,
Glen Vlotman
"You cannot code for stupidity"
|
|
|
|
|
Hey, nortee,
good to see you again. that sounds interesting. I'd love see your in-depth Delphi articles, and the articles would help, as I'm struggling between C++ and Delphi. (I'm being... preparing... to get ready to... write something though )
|
|
|
|
|
Hi smag13,
Have a look at Patching me and patching you. I am going to be revamping my wording for the article (because I was a bit trashed when I wrote it). But I am going to be doing a lot more articles.
Cheers,
Glen Vlotman
"You cannot code for stupidity"
|
|
|
|
|
100% with you 
|
|
|
|
|
^5 Jose...
I will show you mine if you show me yours... :P
Cheers,
Glen Vlotman
"You cannot code for stupidity"
|
|
|
|
|
I posted 2 articles on Delphi in October 2011. I wonder if these are still the latest ones 
|
|
|
|
|
Nope... mine are later I think ... but hey... let's do this and do it well!!! My next article is semi-done (just working out some kinks) and I hope you and everyone else will enjoy it and learn from it as well
Cheers,
Glen Vlotman
"You cannot code for stupidity"
|
|
|
|
|
|
Also, I just read your articles. Very very nice in my opinion m8! I see you like your assembler. Unfortunately for me, the assembler I do know will probably implode a super computer . Still ... I reckon they are cool none-the-less ...
Cheers,
Glen Vlotman
"Coding from a spec and walking on water *is* possible... As long as both are frozen..."
|
|
|
|
|
Let's do it
Oginiza
The Chief Priest of Delphi
|
|
|
|
|
Hi
Can any one please help me on this issue?
i am trying to transfering a file TSclint to local machine in Windows 7 32bit OS, for that i am using WtsApi32.pas ,but the same thing is not happining in Windows 7 64bit OS
|
|
|
|
|
Hi,
What error message do you get while "the same thing is not happening"?
Some people has problem using the channel between 32bit and 64bit. Can you paste your codes?
|
|
|
|
|
Hi,
I'd just like to ask: Are there still people on here that dabble and/or work with Delphi? I'm just asking because I am in the process of posting several articles and tips and tricks regarding Delphi and I'd just want to know that my efforts to help people would not be in vain.
I will still post the articles, don't get me wrong, I'd just prefer that the articles and stuff would be useful to the rest of the community.
Cheers,
Glen Vlotman
"You cannot code for stupidity"
|
|
|
|
|
Hi, nortee,
Yes, there are
I use Delphi mainly for desktop UI on Windows, though. I would love to see articles talking about Delphi techniques, and I'm sure I will definitely thumb up your articles.
|
|
|
|
|
Hi smags13!!!
Excellent, we live!!!
I use delphi for (amongst other things) standard windows applications, windows service applications and client/server products as well .
To get the ball rolling, this is where my technical article "cherry" was popped: The Configurator[^].
I am going to be adding more articles related to the techniques I described/highlighted because admittedly they require a lot more detailed explanation that would not only be kind of outside the scope of the article, but would have made the article very long and take away what the article was actually about.
I hope you, and any others out there, like it .
Cheers,
Glen Vlotman
"You cannot code for stupidity"
modified 24-Nov-11 6:09am.
|
|
|
|
|
Hi Glen,
There are no much such Delphi fans here.
You can make some speculation from my Delphi article statistics.
But I will be very glad to see your articles about Delphi .
Good Luck
|
|
|
|
|
Hi Amir,
I believe that there are more Delphi guys at heart than they would like to admit. I work on C# and stuff more now than before, but as my "about" states, I will always be a Delphi guy at heart . And keep yourself posted on my articles, I will be writing a few articles pertaining to (but not limited to) Delphi
Cheers,
Glen Vlotman
"You cannot code for stupidity"
|
|
|
|
|
Also, I will make sure to follow your posts. Let's keep it in the family!!!!
Cheers,
Glen Vlotman
"You cannot code for stupidity"
|
|
|
|
|