0

I'm creating a macro that automatically creates a visio diagram from an excel spreadsheet where the diagram is representative of connections in a row on the excel spreadsheet. I'm getting this error and i can't find out the reason, be aware i am reasonably inexperienced at vba. My problem arises when i try to place connections between two objects that have already been placed. to call these objects again i am trying to use their unique id's but for some reason i can't get past the first hurdle.

if theres any insight you can offer to help i'd be glad, forgive the messy code!

    While Current_Row < Last_Row

    While current_object <= counter
        object = "Ellipse." & current_object


        Set ShpObj = AppVisio.ActivePage.Shapes(object)

        If ShpObj.Text = Worksheets("TempSheet").Cells(Current_Row, COLUMN2).Value Then

            While current_get <= counter
                object = "Ellipse." & current_get


                ShpObj2 = AppVisio.ActivePage.Shapes(object)

                If ShpObj2.Text = Worksheets("TempSheet").Cells(Current_Row, COLUMN2).Value Then

                    ShpObj2.AutoConnect ShpObj, visioAutoconnecDirRight, connector '(setting the color and label)

                    Set ShpObj2 = Nothing
                End If
                current_get = current_get + 1
            Wend
        End If

    current_object = current_object + 1
    current_get = 1


    Set ShpObj = Nothing
    Wend

So thats the block thats causing the issue, if you'd like to see the rest of the modules you can find it in a forum post here http://visguy.com/vgforum/index.php?topic=4633.0


FFTW method fftw_cleanup() causing SIGABRT

Good day ,
I am running a simulation program implemented in C++ which uses the FFTW libraries. The program was working fine for weeks. I now had to make some changes to a certain class A and now the program crashes at runtime with SIGABRT. I get no compiler warnings however(-Wall set).
The call stack of the Netbeans debugger looks like this

main -> ~class B -> class B::kill() -> fftw_cleanup() -> fftw_planner_destroy() -> 
??() -> ??() -> abort() -> raise() -> __kernel_vsyscall()

The peculiar thing is that the call stack does not list the class I changed, nor is it a member of class B or directly connected to it.

What exactly can cause fftw_cleanup() to fail (since the function takes no arguments)?

PS: I am using Netbeans 7.2.1 in a linux(opensuse) virtual machine.

4

1 回答 1

3

看起来您忘记正确设置 ShpObj2,然后在条件语句中使用它。

换线试试

ShpObj2 = AppVisio.ActivePage.Shapes(object)

和:

Set ShpObj2 = AppVisio.ActivePage.Shapes(object)

于 2013-02-27T17:01:44.830 回答