Re: [MBS] ZipMBS and Zip64 support?

2020-02-18 Thread Michael Diehr
To revive a very old thread... Catalina apparently does things differently and no longer is happy with these ZipMBS files unless you do some more tweaks. The solution is to properly set the "created by" version number field to : dim zipVersionMadeBy as uint16 = // 03 = unix. 14 hex = 20

[MBS] Feature Request: WKWebViewConfiguration

2019-03-31 Thread Michael Diehr
It would be handy if we could set options in WKWebViewConfiguration for the WKWebView control. See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration ___ Mbsplugins_monkeybreadsoftware.info mailing list

Re: [MBS] Crash in MBS_MacCF_CF_Plugin_19832

2019-01-22 Thread Michael Diehr
No, it was PR6, I'll try 19.0 release version and let you know. > On Jan 20, 2019, at 10:03 AM, Christian Schmitz > wrote: > > > >> Am 20.01.2019 um 17:57 schrieb Michael Diehr : >> >> Hi Christian, >> >> I'm seeing crashes in the following c

Re: [MBS] Crash in MBS_MacCF_CF_Plugin_19832

2019-01-20 Thread Michael Diehr
#endif End Function > On Jan 20, 2019, at 8:57 AM, Michael Diehr wrote: > > Hi Christian, > > I'm seeing crashes in the following code: > > Private Function BinaryPlistToDictionary(data as String) as Dictionary > #if TargetMacOS > >if data = "" then

[MBS] Crash in MBS_MacCF_CF_Plugin_19832

2019-01-20 Thread Michael Diehr
Hi Christian, I'm seeing crashes in the following code: Private Function BinaryPlistToDictionary(data as String) as Dictionary #if TargetMacOS if data = "" then return nil end if dim cb as CFBinaryDataMBS = NewCFBinaryDataMBSStr(data) if cb = nil then return nil

Re: [MBS] WKWebview titleChanged event

2018-12-30 Thread Michael Diehr
> I added two new events: > > TitleChanged(Title as String, oldTitle as string) > EstimatedProgressChanged(estimatedProgress as double, oldEstimatedProgress as > double) Thanks, I'm testing them now in PR5 and seem to work fine so far :-) ___

Re: [MBS] IconFamilyMBS Replacement

2018-12-30 Thread Michael Diehr
Nevermind, it looks like I already wrote code to do this back before I started using MBS :-) > On Dec 30, 2018, at 2:57 PM, Michael Diehr wrote: > > I see from > https://www.mbs-plugins.de/archive/2018-11-04/IconFamilyMBS_class_deprecated/monkeybreadsoftware_blog_xojo > tha

[MBS] IconFamilyMBS Replacement

2018-12-30 Thread Michael Diehr
I see from https://www.mbs-plugins.de/archive/2018-11-04/IconFamilyMBS_class_deprecated/monkeybreadsoftware_blog_xojo that IconFamilyMBS has been deprecated. I've been using the code to create actual icon files in the ICNS format that includes multiple sizes like this: Public Function

[MBS] WKWebview titleChanged event

2018-12-21 Thread Michael Diehr
I'm trying to subclass the WKWebViewControlMBS https://www.monkeybreadsoftware.net/control-wkwebviewcontrolmbs.shtml to make it a drop-in replacement for the Xojo HTMLViewer. One thing missing is the TitleChanged event. For the long term, please consider this a feature request, but for the

Re: [MBS] Improvements for new Picture object types

2018-04-18 Thread Michael Diehr
sk picture? Or do I have that backwards? > On Apr 18, 2018, at 8:51 AM, Christian Schmitz > <supp...@monkeybreadsoftware.de> wrote: > > >> Am 18.04.2018 um 17:35 schrieb Michael Diehr <m...@xochi.com>: >> >> Hi Christian, >> >> In parti

[MBS] Improvements for new Picture object types

2018-04-18 Thread Michael Diehr
Hi Christian, This is a general feature request. Xojo now has a complicated variety of image objects as described here: http://developer.xojo.com/hidpi-support In particular, Pictures now come in five flavors: * Old style (32 bit picture + separate mask) - these are still used by the

[MBS] Check if ImmutableBitmap has alpha channel

2018-04-17 Thread Michael Diehr
With Supports HiDPI ON, Xojo loads pictures as ImmutableBitmaps, which always claim hasAlphaChannel=True regardless of the source file. See here: https://forum.xojo.com/47184-picture-fromdata-gives-immutablebitmap-with-hasalphachannel-tru/last Apparently this is stored internally as an

Re: [MBS] ProcessMBS get command line parameters?

2017-09-17 Thread Michael Diehr
> On Sep 17, 2017, at 8:43 AM, Christian Schmitz > <supp...@monkeybreadsoftware.de> wrote: > > >> Am 17.09.2017 um 15:45 schrieb Michael Diehr <m...@xochi.com>: >> >> On macOS, using "ps -x -o pid,command" I can get a list of other running &

[MBS] ProcessMBS get command line parameters?

2017-09-17 Thread Michael Diehr
On macOS, using "ps -x -o pid,command" I can get a list of other running processes along with their command line parameters / flags. Is there a way to do this using MBS? ___ Mbsplugins_monkeybreadsoftware.info mailing list

[MBS] PIctureMBS.CopyPictureWithoutMaskMBS

2017-06-29 Thread Michael Diehr
I recently upgraded from 15.4 to 17.2 and noticed that these functions: PictureMBS.CopyPictureWithMaskMBS PictureMBS.CopyPictureWithoutMaskMBS are now throwing exceptions when using normal (32 bit) Xojo picture objects: Unhandled Exception: 0 Masks for Pictures with alpha channel is not

[MBS] Win32 equivalent to AVAssetMBS.duration

2017-05-25 Thread Michael Diehr
I'm trying to get the play time (duration in seconds) of A/V assets such as .mp3 and .mp4 files. On Mac I just use AVAssetMBS.duration Is there an easy-to-use equivalent for Win32 builds? Thanks! ___ Mbsplugins_monkeybreadsoftware.info mailing list

Re: [MBS] [ANN] MonkeyBread Software Releases the MBS Xojo / Real Studio plug-ins in version 16.5

2017-01-02 Thread Michael Diehr
Hi Christian, When attempting to download via the Mirror (using http://www.mbsdownload.com/plugin/MBS-Xojo-Plugins165.dmg ) I get a zero byte file. The main download (using https://www.monkeybreadsoftware.de/xojo/download/plugin/MBS-Xojo-Plugins165.dmg ) works fine. This is via

[MBS] ZipFileInfoMBS and Dates

2016-01-31 Thread Michael Diehr
Hi Christian, I'm getting some weird results where the Month and Day both seem to be off by one and I'm wondering if the documentation is wrong or I'm doing something wrong? Here's my code: dim zi as new ZipFileInfoMBS dim d as date = f.ModificationDate zi.day = d.day

Re: [MBS] ZipFileInfoMBS and Dates

2016-01-31 Thread Michael Diehr
'info.Second=d.Second info.SetDate d > On Jan 31, 2016, at 4:53 PM, Michael Diehr <m...@xochi.com> wrote: > > Hi Christian, > > I'm getting some weird results where the Month and Day both seem to be off by > one and I'm wondering if the documentation is wron

[MBS] PictureMBS and Premultiplied alpha?

2016-01-19 Thread Michael Diehr
Hi Christian, It appears that PictureMBS.RowInFormat(y,ImageFormatRGBA) is returning premultiplied RGBA data, even on Win32 which doesn't use Premultiplied alpha. Here's a little test: #if TargetWin32 app.UseGDIPlus = true #endif dim p as new picture(128,128) // new-style 32

Re: [MBS] PictureMBS and Premultiplied alpha?

2016-01-19 Thread Michael Diehr
On Jan 19, 2016, at 2:06 PM, Christian Schmitz <supp...@monkeybreadsoftware.de> wrote: > > >> Am 19.01.2016 um 21:48 schrieb Michael Diehr <m...@xochi.com>: >> >> Hi Christian, >> >> It appears that >> >> PictureMBS.RowInFormat(y,

[MBS] ScreenshotRectMBS and HighDPI Windows Apps

2016-01-12 Thread Michael Diehr
I'm finding that in Windows 10, the call dim p as picture = ScreenshotRectMBS(self.left,self.top,self.width,self.height) is returning the wrong area of the screen, when running on a display that is not set at 100% scale factor. My guess is that your call is using physical pixels

[MBS] Picture.RotateMBS bug on Win32

2015-10-31 Thread Michael Diehr
FYI, when using RotateMBS on Win32 with a 32 bit image source, although the image itself rotates fine, the image mask may have junk in the image channel. The mask junk is not, fortunately in the mask's alpha channel so the fix is therefore just to draw the mask to a temporary picture after

Re: [MBS] HTMLViewer.IELoadHTMLMBS

2015-10-20 Thread Michael Diehr
On Oct 20, 2015, at 3:35 AM, Christian Schmitz <supp...@monkeybreadsoftware.de> wrote: > > >> Am 20.10.2015 um 04:30 schrieb Michael Diehr <m...@xochi.com>: >> >> I'm not having any luck with HTMLViewer.IELoadHTMLMBS, testing under Wi

[MBS] HTMLViewer.IELoadHTMLMBS

2015-10-19 Thread Michael Diehr
I'm not having any luck with HTMLViewer.IELoadHTMLMBS, testing under Windows 10 it always returns false. The documentation is a little unclear, saying "On Windows you may need to reset webviewer before or load "about:blank" to initialize the webviewer by Xojo (or Real Studio)." Do you have

[MBS] Lossy Image Compression with Alpha (JPEG2000, BPG or WebP)

2015-10-16 Thread Michael Diehr
I'm looking for the ability to have good compression levels (lossy) with alpha channel. I believe the options are: JPEG2000 BPG http://bellard.org/bpg/ WebP https://developers.google.com/speed/webp/?hl=en Christian, any interest in adding one or more of these to MBS?

[MBS] NSProcessInfoMBS constants

2015-10-08 Thread Michael Diehr
I'm seeing some issues with the constants for NSprocessInfoMBS: 1. constant is wrong type? dim nspi as new NSProcessInfoMBS dim options as uint64 = Bitwise.BitOr( NSProcessInfoMBS.NSActivitySuddenTerminationDisabled, NSProcessInfoMBS.NSActivityLatencyCritical) Gives a "parameters are not

Re: [MBS] bitmapImageRepForCachingDisplayInRect

2015-10-08 Thread Michael Diehr
On Oct 7, 2015, at 3:31 PM, Christian Schmitz wrote: > >> My question: is there a way in MBSPlugins to do this and quickly convert >> back to a Xojo Picture object? I've some sample code which gets the >> bitmapImageRep and then converts it to a BMP and then

[MBS] bitmapImageRepForCachingDisplayInRect

2015-10-07 Thread Michael Diehr
Christian, there's example code floating around that uses bitmapImageRepForCachingDisplayInRect to get a "screenshot" of a NSView - and it seems like it's more likely to pick up content such as HTMLViewers. (See

Re: [MBS] CPU use on OS X and Windows

2015-10-02 Thread Michael Diehr
On Sep 22, 2015, at 9:17 AM, Christian Schmitz <supp...@monkeybreadsoftware.de> wrote: > > >> Am 22.09.2015 um 17:36 schrieb Michael Diehr <m...@xochi.com>: >> >>> I think DarwinResourceUsageMBS is for your app. >> >> Hmm - testing the "

[MBS] CPU use on OS X and Windows

2015-09-22 Thread Michael Diehr
see DarwinVMStatisticsMBS but I'm not clear if that's per-process or global? For Win32, should I use WindowsProcessStatisticsMBS? Is it per-process or global? Thanks > On Sep 21, 2015, at 6:44 PM, Michael Diehr <m...@xochi.com> wrote: > > Perfect! thank you :-) > >>

Re: [MBS] CPU use on OS X and Windows

2015-09-22 Thread Michael Diehr
> I think DarwinResourceUsageMBS is for your app. Hmm - testing the "Darwin Resource Usage" sample project however, I get "0" for System Time used and UserTimeUsed, which doesn't seem very useful for calculating real-time CPU usage. Correction, after a while UserTimeUsed rises to 1 and then

Re: [MBS] GPU use on OS X?

2015-09-21 Thread Michael Diehr
Perfect! thank you :-) > On Sep 21, 2015, at 1:40 AM, Christian Schmitz > <supp...@monkeybreadsoftware.de> wrote: > > >> Am 21.09.2015 um 02:39 schrieb Michael Diehr <m...@xochi.com>: >> >> See this thread: >> http://stackoverflow.com/que

[MBS] GPU use on OS X?

2015-09-20 Thread Michael Diehr
See this thread: http://stackoverflow.com/questions/10110658/programmatically-get-gpu-percent-usage-in-os-x Is there anything in MBS which can do this (read the GPU's cpu %, used and free Vram numbers)? Thanks ___

[MBS] OverlayMBS performance in Cocoa?

2015-09-10 Thread Michael Diehr
Hi Christian, I'm doing some profiling of my code and noticing that OverlayMBS seems rather slow in some cases, e.g. .Update and (perhaps) changing the value of .Alpha. Sometimes a single OverlayMBS is taking 7-14 msec to update, which is causing stutters in other animations onscreen. Some

Re: [MBS] OverlayMBS performance in Cocoa?

2015-09-10 Thread Michael Diehr
On Sep 10, 2015, at 1:09 PM, Christian Schmitz wrote: > > * There is a .Update(NSImage as variant) call - would that be faster than > using the separate .Pict and .Mask objects? > > yes. Plugin builds a new NSImage from those pictures. I will try this. Does

[MBS] OverlayMBS closed in thread : don't do it

2015-08-26 Thread Michael Diehr
Just ran into a baffling bug with OverlayMBS - turned out I was closing them inside a thread. Although everything looked normal, this was causing many problems later on including an eventual crash. It was extremely hard to debug this, as you can imagine. Christian - I wonder if you could

[MBS] ReadRow or Scanline for JPEG?

2015-08-20 Thread Michael Diehr
Hi Christian, When using PictureMBS, there are examples for loading giant pictures using PNGReaderMBS.ReadRow, and TIFFPictureMBS.Scanline(). I looked at JPEGImporter but it doesn't seem to have a way to get row-by-row data. Is there any equivalent technique for reading gigantic JPEG images?

Re: [MBS] ReadRow or Scanline for JPEG?

2015-08-20 Thread Michael Diehr
On Aug 20, 2015, at 1:32 PM, Christian Schmitz supp...@monkeybreadsoftware.de wrote: Yes. Read row by row. By using InitJPEG/LoopJPEG and FinishJPEG. And using a mode with ByRow in name. The memoryblock in PictureData has the bytes for each row after calling LoopJPEG. Brilliant, works

Re: [MBS] NSViewMBS.RenderImage delivers empty picture

2014-10-23 Thread Michael Diehr
On Oct 22, 2014, at 10:32 AM, Tim Jones tolis...@me.com wrote: On Oct 22, 2014, at 10:18 AM, Michael Diehr m...@xochi.com wrote: It's actually a HTML page that can include any number of videos that may be overlaid in a complex web page, so I really need the RenderImage(). The check

[MBS] FileMapping.OpenSharedMemory failing on Win32 builds

2014-07-29 Thread Michael Diehr
Hi Christian, I'm seeing FileMapping.OpenSharedMemory(id) failing on Win32 builds. I'll send you a demo project off-list. I'm wondering: are there any rules about the id string? The docs mention that it's limited to 31 chars on OS X but don't say anything about a limitation on Win32...

Re: [MBS] JPEG2000...?

2014-07-26 Thread Michael Diehr
Which plugin is it part of? On Jul 25, 2014, at 8:23 PM, Christian Schmitz supp...@monkeybreadsoftware.de wrote: Am 25.07.2014 um 23:31 schrieb Michael Diehr m...@xochi.com: Hi Christian, Is there any way to do JPEG2000 export under Win32 in MBS (without using QuickTime)? Back

Re: [MBS] JPEG2000...?

2014-07-25 Thread Michael Diehr
Hi Christian, To revive a very old thread... Is there any way to do JPEG2000 export under Win32 in MBS (without using QuickTime)? Back in 2003 you were playing with the Jasper library but it sounds like it was never finished. On Apr 25, 2003, at 11:05 AM, Christian Schmitz

[MBS] PictureMBS platform byte-order differences

2014-06-27 Thread Michael Diehr
Hi Christian, If you run the following code on Cocoa vs. Win32 (with GDI+ enabled), the final picture result is different, it appears as if the pixels are mis-ordered: Pushbutton1.Action ' testing PictureMBS byte order dim w,h as integer w=32 h=32 dim p as new picture(w,h) dim r as

Re: [MBS] PictureMBS platform byte-order differences

2014-06-27 Thread Michael Diehr
It seems that a workaround is to add this: #if TargetWin32 data.EndianU32_LtoBMBS(0,data.size/4) #endif On Jun 27, 2014, at 9:03 AM, Michael Diehr m...@xochi.com wrote: Hi Christian, If you run the following code on Cocoa vs. Win32 (with GDI+ enabled), the final picture result

Re: [MBS] SystemInformationMBS.MacVRAMSize

2014-06-26 Thread Michael Diehr
schrieb Michael Diehr: Hi Christian... to follow up on an old thread. I have a user with a macbook pro with 2 graphics cards (NVIDIA 9600 and NVIDIA 9400). The 9600 has 512MB of VRAM, yet SystemInformationMBS.MacVRAMSize is reporting 256MB. (The user has verified that the 9600

Re: [MBS] [ANN] 14.2pr12

2014-06-21 Thread Michael Diehr
On Jun 20, 2014, at 1:56 PM, Christian Schmitz supp...@monkeybreadsoftware.de wrote: Hi, * Added HasAlphaChannel property for PictureEditorMBS, PictureReaderMBS and PictureWriterMBS class. Thanks! * Added NewPictureWriterMBS support for alpha images and for reusing images. what does

[MBS] FileMapping : Detach memoryblock?

2014-06-20 Thread Michael Diehr
I'm experimenting with FileMappingMBS. Is there a way to detach the memory block received and then destroy the FileMappingView, without losing the memory block? I'm trying to avoid an extra MemoryBlock copy if possible. Server: dim fm as new FileMappingMBS

Re: [MBS] FileMapping : Detach memoryblock?

2014-06-20 Thread Michael Diehr
Thanks - perhaps the documentation should be updated for the next release then if it's not working well... On Jun 20, 2014, at 2:01 PM, Christian Schmitz supp...@monkeybreadsoftware.de wrote: Am 20.06.2014 um 22:57 schrieb Michael Diehr m...@xochi.com: If I do this, the data ends up

Re: [MBS] PictureMBS.ScaleMT on Win32 with New-Style pictures?

2014-06-16 Thread Michael Diehr
be great if you could get this working... any ideas? if this is a Xojo bug, has it been reported to them yet? On Sep 27, 2013, at 10:08 AM, Christian Schmitz supp...@monkeybreadsoftware.de wrote: Am 27.09.2013 um 19:05 schrieb Michael Diehr m...@xochi.com: You are testing with GDI

[MBS] OverlayMBS and 32-bit pictures on Win32?

2014-06-16 Thread Michael Diehr
Hi Christian, When I try to use OverlayMBS with 32-bit pictures on Win32 builds with GDI+ enabled, nothing is showing. Could you see about fixing that? Thanks, -mike ___ Mbsplugins_monkeybreadsoftware.info mailing list

Re: [MBS] ZipMBS and Zip64 support?

2014-06-04 Thread Michael Diehr
for flagBase. Could you give an example? On Jun 4, 2014, at 2:53 AM, Christian Schmitz supp...@monkeybreadsoftware.de wrote: Am 03.06.2014 um 23:54 schrieb Michael Diehr m...@xochi.com: Christian - perhaps you could offer us some control over the version # that's output in the zip

[MBS] OverlayMBS and Threads in Win32

2013-10-11 Thread Michael Diehr
Christian, I'm running into an issue with OverlayMBS plugins in threaded win32 apps, perhaps you can see if this is fixable on your end? See feedback://showreport?report_id=30124 ___ Mbsplugins_monkeybreadsoftware.info mailing list

Re: [MBS] PictureMBS.ScaleMT on Win32 with New-Style pictures?

2013-09-27 Thread Michael Diehr
, Christian Schmitz supp...@monkeybreadsoftware.de wrote: Am 23.09.2013 um 03:24 schrieb Michael Diehr m...@xochi.com: I'm just guessing here, as I've never used GDI+ from C myself. Error 2 is InvalidParameter according to http://msdn.microsoft.com/en-us/library/windows/desktop

Re: [MBS] PictureMBS.ScaleMT on Win32 with New-Style pictures?

2013-09-22 Thread Michael Diehr
for bitmapdata2? On Sep 22, 2013, at 9:19 AM, Christian Schmitz supp...@monkeybreadsoftware.de wrote: Am 22.09.2013 um 18:13 schrieb Michael Diehr m...@xochi.com: As I understand it, the new-style picture images require gdiplus (GDI+) and may require some different flags sent

[MBS] PictureMBS.ScaleMT on Win32 with New-Style pictures?

2013-09-21 Thread Michael Diehr
I'm testing Xojo 2013 R3 with MBS 13.2 (release version). On Cocoa, I'm using PictureMBS.ScaleMT, and seems to work OK with the new style pictures that are created with New Picture(width,height) On Windows, I'm getting blank images (all zeros) in the scaled pictures. Should PictureMBS.ScaleMT

[MBS] QTKitMovieMBS on thread

2013-07-26 Thread Michael Diehr
Is it possible to create one QTKitMovieMBS in the main thread, but then, in a thread, change which movie file the movie points to? In other words, I want to process a bunch of different movies inside a thread and I'm wondering if I can just create one movie object outside the thread, then

[MBS] QTKitMovieMBS.FrameImageAtTime is very slow

2013-07-26 Thread Michael Diehr
I'm updating my code from Carbon to Cocoa, and finding a dramatic slowdown when using QTKitMovieMBS to get a movie frame, as opposed to EditableMovie.Picture With this code: while currentTime = maxTime #if TargetCocoa dim p as picture dim qttime as QTKitTimeMBS = new

[MBS] EditableMovie.Picture = nil in Cocoa builds

2013-07-15 Thread Michael Diehr
Christian, FYI see https://forum.xojo.com/2971-editablemovie-picture-fails-in-cocoa If there was a way to work around this issue in Cocoa builds using MBS plugins, it would be great. I tried FolderItem.OpenMovieMBS but the movie object returned still has a nil handle, and returns Nil when you

Re: [MBS] [ANN] 13.2pr4

2013-06-04 Thread Michael Diehr
* Fixed bug in Cocoa exception handling from pr3. Can you say more about how to use this, and what the pr3 bug was? Or is that detailed in the release notes? ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info

Re: [MBS] PictureMBS with 32-bit Pictures

2013-06-02 Thread Michael Diehr
On Jun 1, 2013, at 8:52 AM, Christian Schmitz supp...@monkeybreadsoftware.de wrote: Am 01.06.2013 um 02:13 schrieb Michael Diehr m...@xochi.com: Now that Real/Xojo is supporting true 32-bit pictures with alpha, is there any way to get the PictureMBS class to work with them? I'll

[MBS] DE vs US servers

2013-06-02 Thread Michael Diehr
Christian, FYI, I'm getting faster download speeds (about 2x to 3x faster) using the .DE server than the .US one, even though I'm located on the west coast of the USA. ___ Mbsplugins_monkeybreadsoftware.info mailing list

[MBS] Picture.CopyARGBToMemoryBlock?

2013-05-31 Thread Michael Diehr
Is there a MBS plugin which supports the new 32-bit with alpha Xojo pictures? I'd like to make a single call such as: Picture.CopyARGBToMemoryBlock(memoryBlock,offset) and get all 32 bits of color data copied. For now I can probably do it with two separate calls, e.g.:

[MBS] HTMLViewer.RenderWebsiteImageMBS is slow

2012-12-28 Thread Michael Diehr
I'm using HTMLViewer.RenderWebsiteImageMBS and finding that it's taking 300msec to render the image, even though the window is only 400x300pixels in size, on a brand new retina book running 10.8.2 with Safari 6.0.2. I've tried some variations such as dim nsv as NSViewMBS =

[MBS] OverlayMBS update and resize?

2012-12-22 Thread Michael Diehr
In an OverlayMBS, I'm finding it impossible to simultaneously update the pictures AND change the window bounds. I always get a single update in which either the picture is blank (drawing white) or the picture is not yet updated and thus is stretched to the wrong size. I've tried various

[MBS] Cocoa: OpenAsMovieMBS doesn't work but OpenAsMovie does?

2012-12-19 Thread Michael Diehr
Under Cocoa (10.8.2) and MBS 12.5 with RB 2012 R2, it seems that OpenAsMovieMBS returns a movie object with .handle=nil, yet the regular old OpenAsMovie works just fine. This seems backwards to me. dim f as FolderItem = GetOpenFolderItem() if f = nil then return // this code works in

Re: [MBS] Cocoa: OpenAsMovieMBS doesn't work but OpenAsMovie does?

2012-12-19 Thread Michael Diehr
On Dec 19, 2012, at 8:27 AM, Christian Schmitz supp...@monkeybreadsoftware.de wrote: Am 19.12.2012 um 15:34 schrieb Michael Diehr m...@xochi.com: Under Cocoa (10.8.2) and MBS 12.5 with RB 2012 R2, it seems that OpenAsMovieMBS returns a movie object with .handle=nil, yet the regular old

Re: [MBS] Determine # of CPU cores or hyperthreads?

2012-12-16 Thread Michael Diehr
Thanks! I want to know the # of Cores so I have an idea how many copies of a background helper app to launch. 1 for 2 cores, 2 for 3 cores, etc. On Dec 15, 2012, at 3:06 PM, Christian Schmitz supp...@monkeybreadsoftware.de wrote: Am 15.12.2012 um 23:25 schrieb Michael Diehr m...@xochi.com

[MBS] Getting and setting ARGB data from new style pictures?

2012-12-16 Thread Michael Diehr
RB now supports true 32 bit pictures where the mask is part of the picture data, obtained by calling new picture (width, height) rather than new picture (width,height,depth) Is there a MBS function get or set the ARGB data that's being used in new-style picture objects? The documentation

[MBS] Determine # of CPU cores or hyperthreads?

2012-12-15 Thread Michael Diehr
Is there a way to determine either the # of actual CPU cores or # of virtual cores (in case the CPU has hyper threading?) Desired on OS X and Win32. Thx ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info

Re: [MBS] “Autoreleased with no pool” messages

2012-09-23 Thread Michael Diehr
On Sep 22, 2012, at 8:04 AM, Christian Schmitz wrote: Am 22.09.2012 um 13:19 schrieb Arnaud Nicolet anic...@mac.com: Greetings, I've been getting the messages quoted below in the Console. I'm guessing it comes from some methods in the plugin (MBS). Is it safe to ignore? It's

[MBS] feedback://showreport?report_id=21829

2012-08-21 Thread Michael Diehr
Hi Christian, Please see feedback://showreport?report_id=21829 which may identify an issue with 12.3 and the latest beta of RB regarding window.top coordinates with OverlayMBS. Thanks, -mike ___ Mbsplugins_monkeybreadsoftware.info mailing list

Re: [MBS] Restart app on Mac.rbp - anything like this for Windows?

2012-06-03 Thread Michael Diehr
On May 29, 2012, at 11:08 PM, Oliver Osswald wrote: Windows has no problem with having both running. Neither does mac os x. You can simply use open -n /path/to/app to open a new instance of an already running app. So a one-liner on mac would be : shell.execute open -n +

[MBS] Crash in MBS 10.1 / FolderItem.CommentMBS under 10.7.3

2012-03-09 Thread Michael Diehr
Just received a customer complaint of a new crash. This is happening in a recursive zip utility I wrote and appears to be getting triggered on this line: dim zi as new ZipFileInfoMBS [...] zi.ExternalFileAttributes = flags zi.DosDate = 0 z.CreateFile(relativePath +

Re: [MBS] Crash in MBS 10.1 / FolderItem.CommentMBS under 10.7.3

2012-03-09 Thread Michael Diehr
On Mar 9, 2012, at 8:56 AM, Christian Schmitz wrote: Am 09.03.2012 um 17:32 schrieb Michael Diehr: Looks to me like CommentMBS is calling out to AppleEvents and that's crashing? Perhaps this is something that used to be OK in a thread, but is no longer thread-safe under 10.7? Does

Re: [MBS] HTMLViewer.EvaluateJavaScriptMBS memory Leak?

2012-02-04 Thread Michael Diehr
On Feb 4, 2012, at 12:12 PM, Christian Schmitz wrote: Am 04.02.2012 um 17:39 schrieb Michael Diehr: Hi Christian, I've discovered what I believe is a small but troubling memory leak in the method HTMLViewer.EvaluateJavaScriptMBS on mac and the corresponding function

Re: [MBS] HTMLViewer.EvaluateJavaScriptMBS memory Leak?

2012-02-04 Thread Michael Diehr
On Feb 4, 2012, at 2:38 PM, Michael Diehr wrote: [...] Timer1.action dim s as string = htmlviewer1.EvaluateJavaScript(return '';) The speed of the leak seems proportional to the size of the string returned. So my guess is that the string being returned

[MBS] Third-party software conflict with GrowIconMBS?

2012-01-12 Thread Michael Diehr
I have a user reporting a crash (nil object exception) in 10.6.3 in some code of mine that uses GrowIconMBS. He's got a whole bunch of haxie-type things installed, so I'm trying to narrow it down to see what the culprit is. Anyone seen this? He's got the following installed... Flip4Mac Growl

[MBS] PictureMBS.ScaleMT hanging

2011-12-14 Thread Michael Diehr
Hi Christian, I'm seeing some pretty serious hangs when using PictureMBS.ScaleMT - the hang appears to be caused by one of the subthreads getting stuck in a semaphore wait condition. Consequences are that the app can not quit or be killed without great effort. I've not isolated the cause

Re: [MBS] [ANN] 11.3pr14

2011-12-02 Thread Michael Diehr
* Added new parameter to FileMappingMBS.MapView for passing own memory. What's the syntax for this? Is there an example or notes that I can refer to? Thanks. ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info

Re: [MBS] Downsize large picture with yielding w/low memory usage?

2011-11-24 Thread Michael Diehr
On Nov 23, 2011, at 7:59 AM, Christian Schmitz wrote: Am 22.11.2011 um 17:30 schrieb Michael Diehr: * does not require tons of memory I'll reduce the Scaling method memory need. For some reason we used doubles there and now I simply use UInt8 which reduces memory requirements

[MBS] Downsize large picture with yielding w/low memory usage?

2011-11-22 Thread Michael Diehr
I have a situation where I need to downsize a 1 x 1 pixel image down to roughly 4000 x 4000. Right now I can do this with RB picture objects, but the call to .drawPicture(...) blocks for about 5000msec. As I'm trying to maintain a 60fps openGL animation at the same time, this is a bit

Re: [MBS] SystemInformationMBS.MacVRAMSize

2011-11-20 Thread Michael Diehr
). Not a big deal, but might be nice to improve at some point. Also, modern VRAM sizes are heading over 2GB, so this may need to return a UINT64 soon :) On Feb 9, 2009, at 5:48 PM, Christian Schmitz wrote: Michael Diehr m...@xochi.com wrote: Christian, FYI it looks like you could change

[MBS] PPC and old OS X support?

2011-11-12 Thread Michael Diehr
I'd like to use MBS 11.3 for my production application for a Carbon build in 2011R3. If I do this, are there any limitations on OS X support re: PPC support of OS X 10.4, 10.5 ? I'd be upgrading from MBS 10.1 -- any changes since then? ___

[MBS] OverlayMBS.Show : shows attached window, in Cocoa

2011-11-04 Thread Michael Diehr
Under Cocoa, calling OverlayMBS.Show when the overlay is attached to a parent window, causes that parent window to come forward. A while back, I had a similar issue with win32 builds, so you added WindowsShowMode as integer = 0 to that call so I could use SW_SHOWNOACTIVATE. I'm wondering if

[MBS] Beta plugin zip file including your build folders...

2011-10-26 Thread Michael Diehr
Hi Christian, The .zip file for MBS 113pr10, when unzipped, gives me a 5 level folder hierarchy: Users/cs/Development/RealbasicPlugin/Release/MBS-RB-Plugins113pr10 I think your zip command is not what you intended? ___

Re: [MBS] [ANN] 10.2pr9

2011-07-19 Thread Michael Diehr
Christian -- email subject line says 10.2pr9 -- isn't this 11.2pr9? You might want to re-send a corrected version for the record...? On Jul 15, 2011, at 7:09 AM, Christian Schmitz wrote: Hi, * Added CFArrayMBS Constructor to take string array. * Improved NSProcessInfoMBS,

Re: [MBS] CGContextGetColorTransform is obsolete

2011-07-06 Thread Michael Diehr
On Jul 6, 2011, at 4:04 AM, Christian Schmitz wrote: Am 06.07.2011 um 01:07 schrieb Michael Diehr: I'm seeing messages in the console that say CGContextGetColorTransform is obsolete and will be removed... I'm not using that call myself, but am using MBS plugins that operate on CG

Re: [MBS] CGContextGetColorTransform is obsolete

2011-07-06 Thread Michael Diehr
On Jul 6, 2011, at 7:15 AM, Michael Diehr wrote: On Jul 6, 2011, at 4:04 AM, Christian Schmitz wrote: Am 06.07.2011 um 01:07 schrieb Michael Diehr: I'm seeing messages in the console that say CGContextGetColorTransform is obsolete and will be removed... I'm not using that call myself

Re: [MBS] Several QT examples not working in Win32 in 2011 R2

2011-06-23 Thread Michael Diehr
On Jun 23, 2011, at 2:10 AM, Christian Schmitz wrote: Am 23.06.2011 um 04:44 schrieb Michael Diehr: Hi Christian, Using 2011 R2, with MBS 11.2pr4, I'm finding a few examples work fine on Mac (Carbon) but are failing on Windows. QT Make Slide Show Movie.rbp gives failed to flatten

[MBS] Several QT examples not working in Win32 in 2011 R2

2011-06-22 Thread Michael Diehr
Hi Christian, Using 2011 R2, with MBS 11.2pr4, I'm finding a few examples work fine on Mac (Carbon) but are failing on Windows. QT Make Slide Show Movie.rbp gives failed to flatten movie error. MovieExporter to MP4.rbp fails with Error on convering movie: -1 I have QuickTime 7.6.9

Re: [MBS] OverlayMBS.Height change buggy in Cocoa

2011-06-04 Thread Michael Diehr
On Jun 3, 2011, at 2:48 PM, Christian Schmitz wrote: Am 03.06.2011 um 21:44 schrieb Michael Diehr: Try this code in an OverlayMBS:... There is quite some math to do in Cocoa as the coordinate system is reverse and we have to calculate the new total frame height where you only specify

Re: [MBS] OverlayWindowMBS.AttachToWindow broken in Cocoa

2011-06-02 Thread Michael Diehr
On Jun 2, 2011, at 9:13 AM, Christian Schmitz wrote: Am 02.06.2011 um 18:05 schrieb Michael Diehr: Question: is it possible with the REALbasic window class to draw transparent background colors (e.g. to use an alpha value in the window.paint or canvas.paint event) ? If so, I could