Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetUnhandledExceptionFilter question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00479469
Message ID:
00479946
Vues:
41
Hi!

I just curious, what the problem with transform? I know there is a bug with this function when converting numbers like '0.0024' using mask '999,999.999999'. However, I never seen or found in newsgropups that transform() function causes crash. Can you post reproducable sample of this behavior? Maybe it could be solved by another way. I did made a background service application that works with MS Word OLE object, outlook to send mail (or SMTP), a lot of data processing and automatic report generation in Word etc., but it works ok without crashes across weeks. I will be glad to share my experiense in this topic, so you will not need to try workaround the C0000005 crash (I don't remember someone tried this).

>Actually I have a mission critical app, and VFP's standard GPF box locks
>the application until you manually restart it. Ever since SP4, a TRANSFORM()
>statement causes a GPF erratically, and all efforts to fix it make it seem
>as though it has vanished, only to have it reappear.
>
>The VFP developers have set a custom SetUnhandledExceptionFilter that displays the new C5 crash box, but I'd rather interrupt it, record the info in a file, then automatically restart the app.
>
>I believe an C++ FLL or DLL is the way to go now, it just takes more time than a workaround.
>
>Thanks for your input,
>Ed
>
>
>>Hi!
>>
>>It is called 'Callback function' and you cannot do this in VFP directly. You can make this only using custom ActiveX written on C++ or Delphi or other language that does this job for VFP application or with use VFPCOM.DLL bind VFP code to some event of other COM/ActiveX object that will fire event when callback function called.
>>
>>Anyway, I'm very curious why you need to handle this error? As far as I know such error is a subject of immediate code change of application or election of another tool...
>>
>>In addition, I doubt you will be abnle to handle it in VFP code properly with dynamic strings handling and other dynamic memory stuff in VFP.
>>
>>>Is there a way to extract a pointer to a subroutine in VFP.
>>>I'd like to create a custom C5 error handler for my app, so
>>>I need to specify something similar to:
>>>
>>> nHdle = SetUnhandledExceptionFilter(AddressOf GPF_Handle)
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform