|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
VB6 compiler Out Of Memory
HELP!
My code compiled and ran locally fine yesterday. The only change I've made is commenting out client side code that referenced ADO which will no longer be needed when the middle tier has been implemented. Client code example: Option Explicit private x as svr.Junk Sub Main() set x = createObject("svr.Junk") x.tester = "chester" end Sub Server COM class: Option Explicit Implements COMSVCSLib.ObjectControl Private m_objContext As ObjectContext Private mTester as string Public Property tester(ByVal vData As String) mtester = vData End Property Public Property Get tester() As String tester = mtester End Property Private Sub ObjectControl_Activate() Set m_objContext = GetObjectContext End Sub Private Sub ObjectControl_Deactivate() Set m_objContext = Nothing End Sub Private Function ObjectControl_CanBePooled() As Boolean ObjectControl_CanBePooled = False End Function |
|
#2
|
|||
|
|||
|
Try reverting to the previously working code & verify the code compiles properly. Then make your changes incrementally and test compiles along the way, perhaps you can identify the problem section of code that way.
|
|
#3
|
|||
|
|||
|
If your com is correct,U should remove the "private x as svr.Junk" statement in the segment of "option explicit"..And add "dim x" into the sub main()...
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > VB6 compiler Out Of Memory |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|