Displaying 20 results from an estimated 100000 matches similar to: "How are shared variables destroyed ?"
2012 Jun 19
0
[LLVMdev] [LLVMDev] Object in a try-catch block not being destroyed even after an exception
On 6/19/2012 7:14 AM, SHIVA PRASAD wrote:
> Dear LLVM Members,
>
> The below source code from gcc test suite replicates the
> problem which i am facing. When it is built with clang, it throws an
> abort(highlighted).
> The following are my observations -
>
> 1. The object(tmp) is not getting destroyed immediately after the
> exception is thrown. In case of
2006 Feb 10
0
Deleting the association entry for has_and_belongs_to_many when one object is destroyed
I know that for has_many, and has_one.
I can do :dependent => true and the associated object will be
destroyed when the main object is destroyed.
However, there does not seem to be a dependent like option for
has_and_belongs_to_many.
Is there one I do not know of? Is there a simple solution to this?
Thanks,
Brian
--
www.kenlet.com
2010 Sep 06
1
Dial timeout and SIP 302 Moved Temporarily
Hi,
With a 1.4.35 or 1.6.1.19, I'm facing this behaviour :
- extension 7002 is a SIP hard phone currently configured to forward
incoming calls to extension 7003, when a call is unanswered within a 10s
time frame
- when extension 7001 is calling extension 7002 with a Dial(SIP/7002,20)
statement and no one answers, then :
- after 10s, Asterisk receives "SIP 302 Moved temporarily"
2006 Nov 08
0
Prevent an object from being destroyed in HABTM relationship
Hello all,
I have the following models:
class Sku < ActiveRecord::Base
has_and_belongs_to_many :options
end
class Option < ActiveRecord::Base
has_and_belongs_to_many :skus
end
By default if I destroy an Option any relationships between Options and
Skus will be removed as well.
But, I want to prevent an Option from being destroyed when it is
associated with a Sku in the options_skus
2012 Jun 19
2
[LLVMdev] [LLVMDev] Object in a try-catch block not being destroyed even after an exception
Dear LLVM Members,
The below source code from gcc test suite replicates the problem
which i am facing. When it is built with clang, it throws an abort
(highlighted).
The following are my observations -
1. The object(tmp) is not getting destroyed immediately after the exception
is thrown. In case of Clang, the object is getting destroyed at a later
point of time.
2. In case of gcc, the
2007 Jul 21
0
[1127] trunk/wxruby2: Move shared C++ GC functions into separate file included into wx.i
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2005 Apr 14
3
files and directories with accented characters are destroyed
On Mac OS X (mini Mac), using rsync with --delete option to backup a
linux Box, all the file and directories with accented characters are
destroyed:
deleting Documents/Ve??lo/
deleting Documents/Ckr/marche??s_publics/
deleting Documents/Ckr/Pre??sentations/Linux_logiciels_libres(SICTIAM).sxi
deleting Documents/Ckr/Pre??sentations/Linux_logiciels_libres(SICTIAM).ppt
deleting
2006 Aug 02
2
tcl/tk bind destroy event
Hello!
I want to create a messagebox whenever the user wants to destroy the window
(e.g. <Alt-F4> or the 'x' in the right top corner) and ask if a modified file
should be saved or not.
If 'cancel' is chosen then nothing should happen and the windows still should be
existing. This doesn't work. When I press cancel the window will be destroyed
although.
I also
2012 Jun 18
1
Restore destroyed snapshot ???
OK, I am a butt-head and accidentally destroyed my last snapshot of a
replicated ZFS dataset. The dataset is NOT mounted and other than a
resilver going on, there is no I/O going on to this dataset. Is there
any way to roll back and get my latest snapshot back?
from zpool history -i:
2012-06-18.10:34:00 zfs destroy xxx at 1339668001
2012-06-18.10:34:00 [internal destroy txg:2213852] dataset =
2007 Aug 22
1
rfc3680, reginfo+xml
Hi,
RFC3680 defines a SIP event package for registration.
This event package which can be used through NOTIFY-SUBSCRIBE methods, seems
very useful for free sitting or presence applications.
This package is supported in various SIP phones (at least Thomson ST2030) :
when turned on, this feature adds a new login/logout menu among other
things.
It can also be used to send Welcome notices to mobile
2009 Jun 05
4
Recover ZFS destroyed dataset?
I was asked by a coworker about recovering destroyed datasets on ZFS - and
whether it is possible at all? As a related question, if a filesystem dataset was
recursively destroyed along with all its snapshots, is there some means to at
least find some pointers whether it existed at all?
I remember "zpool import -D" can be used to import whole destroyed pools.
But crawling around the
2007 Mar 14
0
before_destroy return false, but dependent are destroyed
I have a problem with before_destroy deleting by dependent records,
even through I return flase.
...
has_many :users, :class_name => ''Editor'', :as => :editable,
:dependent => :destroy
...
def before_destroy
unless self.has_access?(99)
errors.add_to_base "Destroy permissions error!"
return false
end
end
When I remove the dependent
2007 Oct 03
0
[ wxruby-Patches-14411 ] calendar.rb - gui destroyed when changing calendar flags
Patches item #14411, was opened at 2007-10-03 13:59
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=220&aid=14411&group_id=35
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Christopher Bludau (count_cb)
Assigned to: Nobody (None)
Summary: calendar.rb - gui destroyed when changing calendar flags
Initial Comment:
When
2023 Mar 08
2
[libnbd PATCH v2] lib/errors.c: Fix assert fail in exit path in multi-threaded code
When a highly multi-threaded program such as nbdcopy encounters an
error, there is a race condition in the library which can cause an
assertion failure and thus a core dump:
(1) An error occurs on one of the threads. nbdcopy calls exit(3).
(2) In lib/errors.c, the destructor calls pthread_key_delete.
(3) Another thread which is still running also encounters an error,
and inside libnbd the
2011 Nov 24
4
How do I destroy all the posts when the board is destroyed?
I got a application like following.
A board has many posts
All posts belong to a board
I try to destroy all the posts under a board when I destroy the board.
My destroy function is following.
def destroy
@board = Board.find(params[:id])
@post = @board.posts
@post.destroy
@board.destroy
respond_to do |format|
format.html { redirect_to(boards_url) }
format.xml
2011 Oct 27
1
[LLVMdev] Use still stuck around after Def is destroyed:
No, I am not trying to delete anything.
I wanted to created a GlobalVariable that is of Type ConstantArray,
where one of the elements its a BitCast of a GlobalVariable. I have
that, but I get those errors after my pass is done. I dont know why,
my code seems sane enough, and I dont know another way I can go about
this.
On Wed, Oct 26, 2011 at 4:42 PM, Tanya Lattner <lattner at apple.com>
2006 Jan 06
1
Unit Testing - Persistence of Destroyed Objects?
I was doing some unit testing today and came across something that surprised
me. Either I am confused, or destroyed objects persist in memory when doing
unit testing.
To explain: I have a model, Author, which ''has_many :web_resources''. One
type of "web resource" for an Author is the authors website. So, to
facilitate easy creation/lookup of websites for authors, I
2004 Jul 27
1
Problems with "nobody" processes in Samba 3.0.4
Hi
I am having the exact same problem. Did anyone every solve it? It occurs on
both of my samba servers, one of which is not being used.
Jason
----- original message -----
Hi,
Hopefully someone can help me with this because its driving me up the
wall. I admin a Samba PDC which authenticates through an LDAP backend.
Both the samba server and pam authenticate through the entries in the
2011 Oct 26
0
[LLVMdev] Use still stuck around after Def is destroyed:
On Oct 26, 2011, at 12:18 PM, ret val wrote:
> I made a GlobalVariable that is of type ConstantArray. For one of it's
> elements I assigned it the ConstantExpr::getBitCast of another
> GlobalVariable(the "shadow pointer" mentioned). This gives me:
>
> While deleting: i32 (i32)** %Shadow Variable for ptr1
> Use still stuck around after Def is
2007 Nov 26
1
[PATCH] Don't draw shaded windows about to be destroyed
---
src/paint.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/paint.c b/src/paint.c
index 00cbf73..4ddd332 100644
--- a/src/paint.c
+++ b/src/paint.c
@@ -193,7 +193,12 @@ paintOutputRegion (CompScreen *screen,
if (w->destroyed)
continue;
- if (!w->shaded)
+ if (w->shaded)
+ {
+ if (w->id < 2)
+ continue;
+ }
+ else