Hey,
I did use the invoke stuff on a textfield and the progressbar, and that
does remove the "autorelease" message.
However, how can i use this on the NSWindow that is showing the
progressbar (displayed as a sheet), because that one is still generating
some problems...
The application is in Multithreaded mode, but the core is written as a
C# dll, which includes the backgroundworker to report the progress, so i
think NSThreadRunner is out of the question, no ?
Br,
Mario
Kenny Clement wrote:
Hi,
The way I do it, I make sure the MonobjC objects are only used on 1
thread.
Make sure all stuff on the backgroundworker threads is pure mono only,
if you need to use MonobjC objects, throw events and invoke those on
your 'cocoa' thread.
However, a better way, is probably described on the Monobjc site:
http://www.monobjc.net/index.php?page=multithreading
Is your application in Multithreaded mode?
If it already is, can you use NSThreadRunner instead of .NET
backgroundworkers?
- Kenny
Mario De Clippeleir wrote:
Hi,
I am using a backgroudworker to show progress of a task. This compiles
and runs fine (it shows the progress), however i always get a lot of
notifications : "object of class autoreleased with no pool in place".
So i defined a NSAutoreleasepool in the DoWork event and release it
after it has done all the work, but still i have the same problem.
I'm pretty much stuck here....Any help ?
Thanks,
Mario
--
*Kenny Clement
*Software Developer**
image003*
*Tel. +32 9 233 68 86
Fax +32 9 240 10 39
[email protected] <mailto:[email protected]>
twitter.com/nomadesk <http://twitter.com/nomadesk>
Confidentiality Notice:
/This message, together with any attachments, is intended only for the
use of the individual or entity to which it is addressed. It may
contain information that is confidential and prohibited from
disclosure. If you are not the intended recipient, you are hereby
notified that any dissemination or copying of this message or any
attachment is strictly prohibited. If you have received this item in
error, please notify the original sender and destroy this item, along
with any attachments./