Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get VFP OLE Server to use error procedure
Message
De
06/05/1998 15:54:35
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00097111
Message ID:
00097488
Vues:
26
>Donald,
>
>>>I'm not sure if it's even safe to launch MessageBox() from the server.
>>
>>Really? Why?
>
>Maybe it's just one of those things, I don't have any hard fact thing saying you should/shouldn't do it. One problem though is your server goes modal at that point. I'm not sure it can respond to anything else, while that MessageBox is waiting to have it's ok button clicked. Most realtime systems like the server I'm doing now can't have that happen.

I read at the MS KB the point about the server being modal. I can see how this could really be a problem if I was using a system like yours or Remote Automation instead of a local in-process server.

>
>>I think you may be right here. It is unfortunate though. The last thing I want to do is test for an error every other line.
>
>ummm it doesn't seem to me that try/catch/throw coding in C++ or Delphi is any easier to handle error conditions than an IF test in VFP. There aren't really that many places in the VFP code where you have to worry about external failures that can give your code problems.

Actually the way that I set up the Delphi exception block, I can control the feedback better. I realize that the only problems I might experience in the VFP code will probably be contention or some other data related anomalie. At this point it is working just fine with CANCEL in the Error method and the client responding to the error.

snipped rest...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform