Re: Bundle question..
Re: Bundle question..
- Subject: Re: Bundle question..
- From: Scott Andrew <email@hidden>
- Date: Thu, 24 Nov 2005 02:10:37 -0800
After about three runs i get the following message:
#0 0x907492a0 in CFHash
#1 0x90749198 in __CFDictionaryFindBuckets2
#2 0x90751638 in __CFDictionaryGrow
#3 0x90750ea8 in CFDictionarySetValue
#4 0x928bc9e4 in -[NSCFDictionary setObject:forKey:]
#5 0x93775828 in -[NSWindowController _windowDidLoad]
#6 0x93772094 in -[NSWindowController window]
#7 0x109d5f5c in HDMVExportMac::Start at HDMVExportMac.mm:39
And no breakpoints hit after the first time through. But all my
structures are released on when the dialog is dismssed.
On Nov 24, 2005, at 1:53 AM, Scott Andrew wrote:
I have a question about using classes returned by a bundle.
If I a load a bundle and export a function that creates a C++ class
Foo can i do the following?
Foo* CreateFoo.
can i do in the application:
#include Foo.h
Foo* myFoo = CreateFoo();
myFoo->DoSomeFooThing();
Can my main application call a Foo* directly if the mebmers are not
exported?
The reason for this is I am writing a photoshop plugin and I am
having trouble when i run my plugin more than once. It crashes when
i try to show a modal window..
I do the following:
void HDMVExportMac::Start()
{
HDMVExport::Start();
// create our auto release pool
NSAutoreleasePool* localPool = [[NSAutoreleasePool alloc] init];
// this inits our NSApplication. must do that.
NSApplicationLoad();
// create our two window controlllers. One is the progresbar one
is the export window.
HDMVProgressController* progressController =
[[HDMVProgressController alloc]init];
HDMVExportWindowController* controller=
[[HDMVExportWindowController alloc] init];
// run the progress controller first.
[NSApp runModalForWindow:[progressController window]];
// run the window modal window.
[NSApp runModalForWindow:[controller window]];
// release it when done..
[progressController release];
[controller release];
// release our autorelease pool.
[localPool release];
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40adelphia.net
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden