[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: luacom: why no Release()?
- From: "King, Mike" <MKing@...>
- Date: Wed, 29 Jul 2009 15:27:41 -0400
>> Using the following code, I never see "Goodbye" printed.
>>
>> C:\Users\Mike>lua
>> Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
>> > require"luacom"
>> > e=luacom.GetObject("Excel.Application")
>> > _X = newproxy(true)
>> > getmetatable(_X).__gc = function()
>> >> e=nil -- or e:Quit()
>> >> print"Goodbye"
>> >> end
>> ^C
> Try ^Z instead of ^C...
I see "Goodbye" when I push ^Z^C but if I swap the order of when "e" and "_X" are assigned, I will not get the printout.
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is confidential or proprietary to K&L Microwave, Inc. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, immediately contact the sender by reply e-mail and destroy all copies of the original message.
- References:
- luacom: why no Release()?, King, Mike
- Re: luacom: why no Release()?, Ignacio Burgueño
- RE: luacom: why no Release()?, King, Mike
- Re: luacom: why no Release()?, Ignacio Burgueño
- RE: luacom: why no Release()?, King, Mike
- Re: luacom: why no Release()?, Peter Cawley
- RE: luacom: why no Release()?, King, Mike
- Re: luacom: why no Release()?, Luiz Henrique de Figueiredo