[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: rcov & Ruby 1.8.5

John Carter

9/5/2006 1:54:00 AM

4 Answers

Mauricio Fernández

9/5/2006 4:56:00 PM

0

On Tue, Sep 05, 2006 at 10:53:42AM +0900, John Carter wrote:
> On Tue, 5 Sep 2006, Mauricio Fernandez wrote:
>
> >On Fri, Sep 01, 2006 at 02:16:58PM +0900, John Carter wrote:
> >>Is it my fevered imagination, or has Ruby-1.8.5 clobbered rcov-0.7.0,
> >>causing it to segfault.
>
> >This code was mostly taken from eval.c's backtrace(). It was changed on
> >Jul 24, but the modification doesn't seem to imply that the above would
> >segfault under 1.8.5. At any rate, here's the patch to mirror the new
> >backtrace():
> >
> >
> >diff -rN -u old-head/ext/rcovrt/rcovrt.c new-head/ext/rcovrt/rcovrt.c
>
> Yip. That fixed it!

That's good news but I'd have liked to understand why :)

I'll apply that patch for the next release; probably compiling it
conditionally. While it looks like it should work with <1.8.5, I'm obviously
missing something because I don't quite see why it fixed the segfault you
reported :) (iow. I have yet to find the modification that allowed
frame->node to hold invalid pointers).

--
Mauricio Fernandez - http://eige... - singular Ruby

John Carter

9/7/2006 12:40:00 AM

0

Joergen Bondesen

11/12/2008 8:39:00 PM

0

Hi Ken

Below macro makes it possible for me to use 'End - key down' with success.

The remaining question is, why this problem.



Option Explicit


'----------------------------------------------------------
' Procedure : AvoidNoneSelect
' Date : 20081112
' Author : Joergen Bondesen
' Modifyed by :
' Purpose : To avoid none select first cell with info.
' Note : Only sometimes in customer excelfiles.
'----------------------------------------------------------
'
Sub AvoidNoneSelect()
Dim rrange As Range
Set rrange = Selection

Dim cell As Range
For Each cell In rrange
If Trim(cell.Value) = vbNullString Then
cell.Value = "'"
cell.Value = vbNullString
End If
Next cell
Set rrange = Nothing
End Sub

--
Best Regards
Joergen Bondesen


"Joergen Bondesen" <bondesen@cool.dk> skrev i en meddelelse
news:eUM6kzPRJHA.3876@TK2MSFTNGP04.phx.gbl...
> Hi Ken
>
> Excuse my insufficient explanation.
>
> I have 2 Columns A and B with 50000 Records.
> Column A and B contains text (no formula).
> In Column A contain all cells information.
> In column B contain cell B2500 = test.
>
> I select cell B1 and use key: End - arrow down.
>
> Normally cell cursor stops at the first cell with info (B2500),
> but sometimes the cell cursor goes to sheet button,
> so I think the column is empty and then delete the column
> and thereby customerinformations, in this case B2500 = test.
>
> Is there a way to make the curser able to stop at B2500?
>
> --
> Best regards
> Joergen Bondesen
>
>
> "Ken" <krcowen@aol.com> skrev i en meddelelse
> news:bf2841ff-0a7a-4cfd-bd5f-b0de795f9dae@i20g2000prf.googlegroups.com...
> Joergen
>
> How are you deleting the column? If you do as I often do and hit
> control space to highlight the column, alt edit delete, you may
> inadvertantly delete additional data if you have any cells in column B
> merged with cells in A or C since the control space will select any
> columns that are merged with column B.
>
> Where is your data that is deleted before it gets deleted? it seems
> like deleting an empty column should not cause any loss of data; and
> if end-down arrow takes you all the way to the bottom, the column is
> either empty or full, and if it is full of data you would probably
> know that.
>
> Ken
>
>
> On Nov 11, 2:45 pm, "Joergen Bondesen" <bonde...@cool.dk> wrote:
>> Hi NG
>>
>> I have an odd problem.
>>
>> Sometimes I get a spreadsheet with records, e.g. 50000 pcs.
>>
>> Column 2 seems empty, so I mark cell B1 and use key: End - arrow down.
>>
>> Normally cell cursor stops at the first cell with info, but sometimes the
>> cell cursor goes to sheet button, so I think the column is empty and then
>> delete the column and thereby customerinformations.
>>
>> Any suggestion to how I can avoid this problem?
>>
>> --
>> Best Regards
>> Joergen Bondesen
>
>


Ken

11/12/2008 9:10:00 PM

0

Joergen

It seems like what appears to be empty is not really empty. The trim
function will remove leading and trailing spaces, so your macro will
replace the cell value with vbNullString (make it really empty) if, in
fact, all that was there was a space (or multiple spaces). I believe
that cell.value="'" is extraneous.

If you edit a seemingly empty cell (before running your macro) you
will probably see that it contains a space. After the macro runs what
looked like it was empty is really empty, so the end-arrow
functionality then performs as you expect.

Good luck.

Ken
Norfolk, Va



On Nov 12, 3:38 pm, "Joergen Bondesen" <bonde...@cool.dk> wrote:
> Hi Ken
>
> Below macro makes it possible for me to use 'End - key down' with success.
>
> The remaining question is, why this problem.
>
> Option Explicit
>
> '----------------------------------------------------------
> ' Procedure   : AvoidNoneSelect
> ' Date        : 20081112
> ' Author      : Joergen Bondesen
> ' Modifyed by :
> ' Purpose     : To avoid none select first cell with info.
> ' Note        : Only sometimes in customer excelfiles.
> '----------------------------------------------------------
> '
> Sub AvoidNoneSelect()
>   Dim rrange As Range
>   Set rrange = Selection
>
>   Dim cell As Range
>   For Each cell In rrange
>     If Trim(cell.Value) = vbNullString Then
>       cell.Value = "'"
>       cell.Value = vbNullString
>     End If
>   Next cell
>   Set rrange = Nothing
> End Sub
>
> --
> Best Regards
> Joergen Bondesen
>
> "Joergen Bondesen" <bonde...@cool.dk> skrev i en meddelelsenews:eUM6kzPRJHA.3876@TK2MSFTNGP04.phx.gbl...
>
>
>
> > Hi Ken
>
> > Excuse my insufficient explanation.
>
> > I have 2 Columns A and B with 50000 Records.
> > Column A and B contains text (no formula).
> > In Column A contain all cells information.
> > In column B contain cell B2500 = test.
>
> > I select cell B1 and use key: End - arrow down.
>
> > Normally cell cursor stops at the first cell with info (B2500),
> > but sometimes the cell cursor goes to sheet button,
> > so I think the column is empty and then delete the column
> > and thereby customerinformations, in this case B2500 = test.
>
> > Is there a way to make the curser able to stop at B2500?
>
> > --
> > Best regards
> > Joergen Bondesen
>
> > "Ken" <krco...@aol.com> skrev i en meddelelse
> >news:bf2841ff-0a7a-4cfd-bd5f-b0de795f9dae@i20g2000prf.googlegroups.com...
> > Joergen
>
> > How are you deleting the column?  If you do as I often do and hit
> > control space to highlight the column, alt edit delete, you may
> > inadvertantly delete additional data if you have any cells in column B
> > merged with cells in A or C since the control space will select any
> > columns that are merged with column B.
>
> > Where is your data that is deleted before it gets deleted?  it seems
> > like deleting an empty column should not cause any loss of data; and
> > if end-down arrow takes you all the way to the bottom, the column is
> > either empty or full, and if it is full of data you would probably
> > know that.
>
> > Ken
>
> > On Nov 11, 2:45 pm, "Joergen Bondesen" <bonde...@cool.dk> wrote:
> >> Hi NG
>
> >> I have an odd problem.
>
> >> Sometimes I get a spreadsheet with records, e.g. 50000 pcs.
>
> >> Column 2 seems empty, so I mark cell B1 and use key: End - arrow down.
>
> >> Normally cell cursor stops at the first cell with info, but sometimes the
> >> cell cursor goes to sheet button, so I think the column is empty and then
> >> delete the column and thereby customerinformations.
>
> >> Any suggestion to how I can avoid this problem?
>
> >> --
> >> Best Regards
> >> Joergen Bondesen- Hide quoted text -
>
> - Show quoted text -