Issue 111589 - Dll call causes OOo crash sometime, such as: Call HtmlHelp(0, "C:\Test.chm", 0, 0)
Summary: Dll call causes OOo crash sometime, such as: Call HtmlHelp(0, "C:\Test.chm", ...
Status: CONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: vba (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Windows XP
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 03:18 UTC by lihuiibm
Modified: 2013-02-24 20:56 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description lihuiibm 2010-05-14 03:18:18 UTC
Dll call causes OOo crash sometime, such as: Call HtmlHelp(0, "C:\Test.chm", 0, 0):
Public Declare Function HtmlHelp Lib "hhctrl.ocx" Alias "HtmlHelpA" _
         (ByVal hwndCaller As Long, ByVal pszFile As String, _
         ByVal uCommand As Long, ByVal dwData As Long) As Long
Sub windowsAPI()
  Call HtmlHelp(0, "C:\test.chm", 0, 0)
End Sub

I tried to delete the line "FreeDllHandle( pDll->GetHandle() )" in method
"SbiDllMgr::~SbiDllMgr()" and "void SbiDllMgr::FreeDll( const ByteString&
rDllName )", OOo did not crash, so I think the cause may be:
The dll call is not completed(The dll call is async?), but the dll is free.
Comment 1 lihuiibm 2010-05-14 03:19:50 UTC
To Andreas: I am not sure the root cause I talked is right, do you have any 
Comment 2 lihuiibm 2010-05-14 03:20:16 UTC
To Andreas: I am not sure the root cause I talked is right, do you have any idea
on this issue?
Comment 3 lihuiibm 2010-05-20 10:03:45 UTC
Known the root cause and has a rough fix.