Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
OpenCmd Command Crashes External Application when Opening Office Files
wizy_69
Hello
I have a solution on vb6 that uses the opencmd command to open a file from worksite, and launch the associated applications.
Works well with adobe files , but when I open office files eg Wordx, the following occurs.
- Associated file opens correctly, with document checked out, which is correct behaviour.
BUT if the application that launched the opencmd command is left unused for a period of time, eg 20 minutes, windows crashes with a memory error.
Any suggestions?
Find more posts tagged with
Comments
wizy_69
Here is a copy of my code:
Dim pOpenCmd As IMANEXTLib.OpenCmd
Dim pContextItems As IMANEXTLib.ContextItems
Set pContextItems = New IMANEXTLib.ContextItems
Set pOpenCmd = New IMANEXTLib.OpenCmd
ReDim pArrDox(0)
Set pArrDox(0) = pNRTDoc 'a valid pointer to a NRTDocument Object
' Required values
pContextItems.Add "ParentWindow", hWnd
pContextItems.Add "SelectedNRTDocuments", pArrDox
' Optional
'pContextItems.Add "IManExt.OpenCmd.NoCmdUI", True
'pContextItems.Add "IManExt.OpenCmd.Integration", False
'pContextItems.Add "IManExt.OpenCmd.ReadOnly", False
pOpenCmd.Initialize pContextItems
pOpenCmd.Update
If pOpenCmd.Status = (pOpenCmd.Status And nrActiveCommand) Then
pOpenCmd.Execute
Dim vRefresh
vRefresh = pContextItems.Item("iManExt.Refresh")
' True indicates execution was successful.
End If