[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Why can't I rescue OLE Exceptions?

Nilez Parker

4/30/2008 7:12:00 PM

I've had this problem consistently over the past year and just now I
actually DO need to find the fix if it is AT ALL possible.

WIN32OLE raises an Exception when there are simple problems in OLE
operations. I put in a logical rescue, and what's odd, the rescue code
RUNS, but the program still immediately exits no matter what I do. No
example code necessary, try the simplest case and it should act up as
soon as you want it to.

Is there ANY way to catch / rescue these exceptions? Why does the rescue
code run but the code is not actually rescued?
--
Posted via http://www.ruby-....

2 Answers

Avdi Grimm

4/30/2008 7:55:00 PM

0

On Wed, Apr 30, 2008 at 3:11 PM, Nilez Parker <dcparker@gmail.com> wrote:
> I've had this problem consistently over the past year and just now I
> actually DO need to find the fix if it is AT ALL possible.

Can you post a simple example that exhibits this behavior?

--
Avdi

Home: http:...
Developer Blog: http:.../devblog/
Twitter: http://twitte...
Journal: http://avdi.livej...

Nilez Parker

5/1/2008 1:00:00 PM

0

>> I've had this problem consistently over the past year and just now I
>> actually DO need to find the fix if it is AT ALL possible.

> Can you post a simple example that exhibits this behavior?

Ok, sorry, I figured out why I was getting the odd behavior... first of
all the error was originating in a different place than I expected. :P

It does seem that I've had the aforementioned problem in the past, but
I'm no longer running into trouble in this project, so I guess I'm
RESOLVED. :)

Thanks anyway!
--
Posted via http://www.ruby-....