Hi,
I've created a blank application with a mdi parent form opening a blank child form from the menu.
When the parent form of the child form is set to the mdi - it appears the system does not release memory - thus a leak.
When the parent form is not set, the child form is removed.
Does anyone know why this apparent memory leak can be resolved?
…
Hi All,
I have to implement a logic whereby given a child class, I need to access its parent class and all other child class of that parent class, if any. I did not find any API in Java Reflection which allows us to access all child classes of a parent class. Is there any way to do it?
Ex. class B extends class A
class C extends class A
Now…
Hi,
I seem to have got stuck in a situation where I have a parent and child usercontrol.
I want to be able to raise an event in the child and have the parent handle this event.
How do I trigger the event in my child view model and handle it in the parent view model.
If anybody has a simple example that would be really good.
Thanks very…
Hello!
You can see here what i am doing:
http://www.arvag.net/otkrijte-svet/leto/
So its pulling 2 custom fields from child pages, one of them is just url for the image on the left, and the other field is that text showing on the right.
Now, what i want to do is to add pagination there. The code i have now will just simply show all…
Hi to all,
When i test the execution of a method that creates a child thread, the JUnit test ends before the child thread and kills it.
How do i force JUnit to wait for the child thread to complete its execution?
Thanks
So I have a program which creates a child process and executes a command (for example, ls). The parent will then use pipes to send to and get from the child. This works fine when I'm inputting commands myself from the command line.
However, when the input comes from a file, it seems like the child doesn't have enough time to run and I…
what is the best way to keep a child control up to date for changes in the parent.
I have a number of child controls hosted inside my parent object and I can think of two ways to send change information to them.
1) wire the child control to an event in the parent. and fire that event on a change in the parent
2) keep a list of the…
So, I have a plugin to an MFC program. I'm using a mouse event hook (from SetWindowsHookEx) to capture clicks. The host application can have any number of (possibly overlapping) child windows open, but I only want to intercept clicks in a particular child window.
Is there a way to figure out in the hook proc which of the child…
In LINQ To Entities: How do I get the records (including both child and parent) based on a condition of the child in a one to many.
My structure is set up as follows:
GetResources() - returns a list of Resources.
GetResources().ResourceNames - this is the child, which is an entity collection.
GetResources().ResourceNames - a…
I am trying to import data from a database that uses primary key / forign key relations to a core data database in Xcode.
I have code that creates hundreds of child entities in a managed object context:
Each child has an ID that corresponds to a parent.
child1 parentID = 3
child2 parentID = 17
child3 parentID = 17…
Not sure if what I am trying is possible or not, but I'd like to reuse a linq expression on an objects parent property.
With the given classes:
class Parent {
int Id { get; set; }
IList<Child> Children { get; set; }
string Name { get; set; }
}
class Child{
int Id { get; set; }
Parent Dad { get; set; }
string…
I have an sql statement that currently is just returning all the end parent rows for a list of child rows:
SELECT DISTINCT row
FROM table heirarchy
WHERE parent_row = NULL
CONNECT BY nocycle PRIOR parent_row = row
START WITH row IN (select statement returning child rows)
Is there a way to show the…
I have a parent div that has position: relative and his child has position: absolute. Such positions is a must. The problem is the parent does not stretch to the height of the child. The question is how to make it stretch to the height of the child?
The mark-up is similar to this:
<!DOCTYPE HTML>
<html>
…
I have div tag and him is several ul tags.
If I trying set css properties only for first ul tag, this code works:
div ul:first-child {
background-color: #900;
}
But when i want set css properties each ul tags, except first, I trying this:
div ul:not:first-child {
background-color: #900;
}
also this
div…
I have a simple Rails 3 application and I am trying to create a new record that belongs to it's owner. It's working by passing the id to a hidden field in the new form of the child record.
This works well and once the new child form submitted it correctly gets associated in the child/parent relationship.
What I am…
Contents of check.py:
from multiprocessing import Process
import time
import sys
def slp():
time.sleep(30)
f=open("yeah.txt","w")
f.close()
if __name__=="__main__" :
x=Process(target=slp)
x.start()
sys.exit()
In windows 7, from cmd, if I call python check.py, it doesn't immediately exit, but instead waits…
I have and entity lets call it Entity, and a Child collection Children.
I have a screen where the user has the Entity information, and a list with the Children collection, but that collection can be get very big, so i was thinking about using paging: get the first 20 elements, and lazy load the next only if the…
Hi, is it possible set something like wpf window owner in caliburn.micro ?
I have PARENT VIEW MODEL, from this model I open CHILD SCREEN {VIEW MODEL} with this method:
public IEnumerable<IResult> Open()
{
yield return new ShowWindow("ChatScreen")
.InitializeWith(_service
…
Hello,
I'm using WebDrive to map a drive letter to a WebDAV share running on Subversion with the SVNAutoversioning flag enabled. The Subversion server is running CollabNet Subversion Edge with LDAP authentication.
When trying to connect using WebDrive, I get:
Connecting to site myserver
Connecting to…
Which of the following two models makes more sense? I'm leaning towards the first one because there can only be one default child.
The examples are in C# but I think it can apply to other languages too.
Here DefaultChild holds one of the items in Children.
class Parent
{
int ID { get; set; }
…
I am making my own game editor, but have encountered the following problem:
I have two objects, A and B.
A's initial values:
Position: (3,3,3), Rotation: (45,10,0), Scale(1,2,2.5)
B's initial values:
Position: (1,1,1), Rotation: (10,34,18), Scale(1.5,2,1)
If I now make B a child of A, I need to…