Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CRASH: divide by zero
Message
From
13/06/2004 11:37:27
 
 
To
12/06/2004 13:48:03
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00913043
Message ID:
00913232
Views:
22
>
>What your code suppouse to repro? What did you expect? What was actual result?
>

>
>Sorry Sergey,
>
>it is written badly ?
>
>it is insufficient in order to understand the problem ?

Yes, generally this is the format you want to follow:

==TITLE==
Automation - Fatal c0000005 error, crash with reference to Outlook folder items collection

==VERSION DETAILS==
VFP9 build 815

==PLATFORM==
Windows XP 5.1.2600
OS Depentant? YES/NO

==BUCKET # (IF AVAILABLE)==
12697551

==STEPS TO REPRO==
1. Run the following code from a program (.PRG) file:
oOutlook = CREATEOBJECT('outlook.application')
loSpace = oOutlook.GetNameSpace("MAPI")
m.OLSyncFolder = "Inbox"
loSelFolder = .NULL.
FOR EACH loFolder IN loSpace.Folders
FOR EACH loSubFolder IN loFolder.Folders
IF ALLT(loSubFolder.NAME) == m.OLSyncFolder
loSelFolder = loSubFolder
EXIT
ENDIF
ENDFOR
IF !ISNULL(loSelFolder)
EXIT
ENDIF
ENDFOR

IF ISNULL(loSelFolder)
=MESSAGEBOX("Folder '" + m.OLSyncFolder + "' is invalid or not found.",48,"System Message")
RETURN
ENDIF

IF TYPE("loSelfolder")<>"O"
=MESSAGEBOX("Invalid folder selected",48, "Sync Error!" )
RETURN
ENDIF

loContacts = loSelFolder.Items
RETURN

==OBSERVED BEHAVIOR==
1. Fatal Exception error on line before RETURN

---------------------------
Microsoft Visual FoxPro
---------------------------
Fatal error: Exception code=C0000005 @ 5/04/02 12:20:43 PM. Error log file: C:\Program Files\Microsoft Visual FoxPro 9\vfp9err.log Called from - testxx line 27 {c:\vfptest\testxx.prg c:\vfptest\testxx.fxp}
---------------------------
OK
---------------------------

2. Also crashes in VFP8.

3. Works without error in VFP6 SP5

4. VFP9 build 1405 Bucket ID is 12697551.

==EXPECTED BEHAVIOR==
Program completes with no crash.


==COMMENTS==
This is preventing me from deploying this application in VFP9
Previous
Reply
Map
View

Click here to load this message in the networking platform