Overflow error when compiling on different computer 
Author Message
 Overflow error when compiling on different computer

I try to compile a ActiveX DLL which perfectly worked on my win98 pc but
can't be compiled on a NT SP6 workstation. Both have had the same VB SP's.
De references are DAO3.51 and ADO 2.5 & ADO recordset 2.5

all code above here

Public Function GetUserSetting(Section As String, Key As String, Optional ID
As Double = 0, Optional Default As String = "") As String

-----     the (previous) line is highlighted with ERROR Overflow in a msgbox
?-------

Dim param As String
Key = Replace(Key, "'", "")
Key = Replace(Key, " ", "")
Key = Replace(Key, "[", "")
Key = Replace(Key, "]", "")
Select Case gbUserSettings

    Case False
    GetUserSetting = GetSetting("dbRecord", Section, Key, Default)

    Case True
    If nSetting Is Nothing Then
        Set nSetting = New nSide
    End If
    param = Section + Chr$(255) + Key + Chr$(255) + MakeParam(UserID) +
MakeParam(glMyGroup)
    With nSetting
        .Find cTableUserSettings, 0, 0, False, , param,
"RecordGetUserSetting"
        With .Rows
            If Not .EOF Then
                GetUserSetting = .Fields(1)
                If .Fields(2) = UserID Or (IsNull(.Fields(2)) And UserID =
0) Then
                    ID = .Fields(0)
                Else
                    ID = -1 ' GEEN persoonlijke instelling
                End If
            Else
                GetUserSetting = Default
            End If
        End With
    End With
End Select
End Function

Public Sub SaveUserSetting(Section As String, Key As String, Value As
Variant, Optional ID As Double = 0, Optional Modified As Boolean = True)
If Not Modified Then Exit Sub
Value = Trim(Value)

Select Case gbUserSettings

    Case False
    SaveSetting "dbRecord", Section, Key, Value

    Case True
    If ID = 0 Then

etcetera

When removing the function the next function gives the error and when I
remove that function a different function in another class module gives the
error

I've installed the components with the software and after this installation
i added the source file to do some testing in debug mode.



Fri, 10 Oct 2003 18:30:28 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Compiling Error "Program-memory overflow"

2. Overflow error when compiled w/Optimization

3. macro in Excel - running on a different computer gives me error 32811

4. VBA macro in Excel - running on a different computer gives me error 32811

5. error 50003 when building on two different computers

6. Compile under Windows 3.1 different from compile under Windows 95

7. error 50003 when building on different computers

8. Compile error: Automation error, Error 32811: Unexpected error

9. Error handling / Arithmetic overflow error

10. Overflow error, error number 6, in VB6 using Crystal Reports 7

11. Cause of error (error 6 overflow) in Windows 2000

12. Crystal error: error ocurred reading records: error in compiling sql expression

 

 
Powered by phpBB® Forum Software