Perhaps you should try to put some DIMs iside the block they belong:
Example
Before:
Dim r as recordset
Dim a(100) as string
Dim myIsDatabase as boolean
myIsDatabase=...
if myIsDatebase then
r=db.sqlselect(....
else
erg=a(...
end if
Perhaps better (worked for me):
Dim myIsDatabase as boolean
myIsDatabase=...
if myIsDatabase Then
Dim r as recordset
r=db.sqlselect(....
erg=r...
else
Dim a(100) as string
erg=a(...
end if
Even better:
Split into different SubRoutines
Aaaah, and another nasty thing:
Since 2007r1 i cannot nest #IF-blocks like this:
#IF targetW32
#IF debugbuild THEN myDebugPrint "Blah"
#ENDIF
Now i have to write
#IF targetW32
#IF debugbuild
myDebugPrint "Blah"
#ENDIF
#ENDIF
Am 07.05.2007 um 19:45 schrieb jda:
>>> It names the "component" but not the method. Unfortunately, there are
>>> probably 100 methods in the class, and I've worked on quite a few
>>> of
>>> them since last building the project (it runs just fine, BTW -- this
>>> only happens with build).
>>>
>>> How can I identify the method so I can refactor the method?
>>
>> I found that Rb usually identifies the method in question in the
>> location column after the failure. Is this not the case with you?
>> Tested in r1 and r2 on PPC Mac.
>>
>>
>
> Unfortunately, the method is not named in the error sheet -- it
> displays the window name after Location.
>
> But I think this is actually an RB bug. The project compiled just
> fine two days ago, and I didn't create or edit any large methods in
> the intervening time. Furthermore, I commented out the contents of
> all methods in the window and it still refused to compile, with the
> same "stack over limit" error message when compiling for PPC (Intel
> compiles were OK).
>
> Jon
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>