Hallo,
seit einiger Zeit bekomme ich folgende Fehlermeldung, wenn ich die sevMsgBox aufrufen will:
"Can't create AutoRedraw image" mit der Fehler-Nr. 480.
Dieser Fehler tritt nur in der Entwicklungsumgebung von VB6 auf. Starte ich die EXE-Datei, kommte es nicht zu dem Fehler. Der Fehler tritt auch nicht immer auf, aber immer öfter. Auffällig dabei ist auch noch, dass immer, wenn der Fehler auftritt, zuvor die Reiter des sevTabStrip, der auf der Maske liegt, grau sind.
Anbei der Source-Code:
Public Function sevMsgBox(ByVal sÜberschrift As String, _
Optional ByVal sMeldung As String, _
Optional ByVal sButton_Text_1 As String, _
Optional ByVal sButton_Text_2 As String, _
Optional ByVal sButton_Text_3 As String, _
Optional ByVal sIcon As Long = 0) As sevMsgBoxResult
On Error GoTo Err_Handle
Dim oMsgBox As New sevXPControls.sevMsgBox
Dim oButtons As sevMsgBoxStyle
With oMsgBox
.UseSEVCommand = True
.ButtonStyle = vbBtnXP
.ShowButtonPictures = False
.BackColor = &HFDCEBB
.Font.Bold = True
.Font = "Calibri"
.Font.Size = "11"
If sButton_Text_1 > "" Then
oButtons = 0
.LanguageText(vbButtonYes) = sButton_Text_1
End If
If sButton_Text_2 > "" Then
oButtons = 4
.LanguageText(vbButtonNo) = sButton_Text_2
End If
If sButton_Text_3 > "" Then
oButtons = 3
.LanguageText(vbButtonCancel) = sButton_Text_3
End If
sevMsgBox = .MsgBox(sMeldung, oButtons + sIcon, sÜberschrift)
Select Case sevMsgBox
Case 6, 1: sevMsgBox = 1
Case 7: sevMsgBox = 2
Case 2: sevMsgBox = 3
End Select
End With
Set oMsgBox = Nothing
Exit Function
Err_Handle:
Fehler "sevMsgBox"
End Function Ich vermute es liegt daran, dass nicht genügend Speicherplatz vorhanden ist. Wenn ja, kann mir jemand sagen, wie ich den Speicherplatz auf meinem Rechner (Windows XP) ermitteln kann und wie ich dann Speicher frei machen kann. |