in reply to Handling returned data from a OLE object.

In my experience when Dumper runs out of memory dumping a Microsoft data structure, it is because the structure is recursive: it contains references to itself. I deal with this by telling Dumper to only dump 1 or 2 levels.

HTH, --traveler

  • Comment on Re: Handling returned data from a OLE object.

Replies are listed 'Best First'.
Re: Re: Handling returned data from a OLE object.
by Anonymous Monk on Feb 20, 2003 at 17:12 UTC
    Your right it seems to point back to itself. The actual problem is that where I expect the data to be is not there. Here is the output of the dump:
    $VAR2 = [ bless( { 'Properties' => bless ( { 'Count' => 102, 'Item' => undef }, 'Win32::OLE'), 'AbsolutePosition 'ActiveConnection 'BOF' => 0, 'Bookmark' => '1' 'CacheSize' => 1, 'CursorType' => 3 'EOF' => 0, 'Fields' => bless ( { 'Count' => 5, 'Item' => undef }, 'Win32::OLE'), 'LockType' => 1, 'MaxRecords' => 0 'RecordCount' => 'Source' => '', 'AbsolutePage' => 'EditMode' => 0, 'Filter' => 0, 'PageCount' => 1, 'PageSize' => 10, 'Sort' => '', 'Status' => 0, 'State' => 1, 'CursorLocation' 'MarshalOptions' 'DataSource' => $VAR2->[0], 'ActiveCommand' = 'StayInSync' => 1 'DataMember' => ' 'Index' => '' }, 'Win32::OLE' ) ];
    I expect the data to be in the Item keys but they are undef. Has anyone worked the returned data from an OLE event?