Multiple recordsets with Microsoft SQL Server


If you try to run two SQL statements on one connection, you often see this error message:

"HY000 [Microsoft][SQL Server Native Client 11.0]Connection is busy with results for another command"

We regularly see the problem with Microsoft SQL Server, but it also happens with Sybase ASE and others.

To solve you can set the option "SQL_ATTR_CURSOR_TYPE" with the value "SQL_CURSOR_DYNAMIC" to get a server side cursor. This will tell the connection to use a dynamic cursor and you can have several of those.
In Xojo:

dim cmd as SQLCommandMBS
cmd.Option("SQL_ATTR_CURSOR_TYPE") = "SQL_CURSOR_DYNAMIC"

in FileMaker:

MBS( "SQL.SetCommandOption"; $Command; "SQL_ATTR_CURSOR_TYPE"; "SQL_CURSOR_DYNAMIC" )

For next plugins we will include code to make sure you can set the option on the connection and pass it down to all commands on that connection.

Alternatively you can use the flag MARS_Connection when connecting inside the connection string:

"bedlam-m\\sql2014en@test;MARS_Connection=yes"

This is global option for the connection.

Xojo 2017 Release 2


Xojo Inc. released today Xojo 2017 Release 2. You can download it on their website.

This update adds more than 250 improvements, with a focus on 64-bit enhancements, Linux GTK+ 3 and HiDPI, and iOS Launch Screen support..

Xojo 2017 Release 2 features:
  • 64-bit support for XojoScript
  • 64-bit string handling is faster and more consistent
  • 64-bit support for Windows icons and version information
  • GTK3 for Linux
  • HiDPI for Linux
  • iOS Launch Screen support
  • Additional drag & drop events for ListBox
  • IDE and web improvements
The complete list of improvements in Xojo 2017 Release 2 can be found in the release notes.

If you use MBS Plugins and the GTK classes, please update to 17.4pr2 or newer plugins.
This includes GTK Window class, OpenDialogMBS, Linux WebKit classes and window functions.
But some changes to picture handling for GTK3 affect all plugins using pictures.

MBS Xojo Plugins, version 17.4pr2


New in this prerelease of the 17.4 plugins:
  • Updated CURL Library to 7.55.1.
  • Added convenience properties Name, Model, Manufacturer and DisplayName for MidiObjectMBS class.
  • Improved GTK classes for future.
  • Modernized GetInfoCertInfo for newer CURL version.
  • Added MemoryUsed and MemoryHighwater properties to SQLite3MBS class.
  • Reorganized plugins. From 65 down to 39.
  • Merged Nikon and Canon plugins into Cameras Plugin.
  • Merged LCMS2, OCR, GIF, PNG, LargeImage, JPEG and Tiff plugins into Images plugin.
  • Merged PHP, CUPS, markdown, RegEx and Tidy into Tools plugin.
  • Merged Twain into Picture plugin.
  • Merged DirectShow, WIA, WinDragDrop, TAPI and WinICM plugins into Win plugin.
  • Removed SQLAnywhere plugin part as that functionality is now available in SQL Plugin.
  • Removed imedia, TCMPortMapper and FTPParse plugin parts as those were really outdated.
  • Removed ImageMagick, LCMS, QTKit and QuickTime plugins. They are archived now.
  • Removed QuickDraw based classes: MacPictMBS, PaletteMBS and related graphics methods.
  • Removed old MacOS Classic classes: WindowGroupMBS, ClickThroughMBS, NumberFormatMBS, DateFormatMBS, AFPURLMBS and InternetConfigMBS.
  • Changed LDAP functions to default to protocol version 3 with UTF-8 as default encoding.
  • Fixed NSPipeMBS class to no longer crash app for broken pipes. We set the signal to be ignored in Constructor.
  • Fixed bug in SKProductsRequestMBS which could lead to crash if you use the class and release instances before you got the event.
  • Updated SQLite to version 3.20.0.
  • Added more constructors for CFURLMBS class.
Download: monkeybreadsoftware.de/xojo/download/plugin/Prerelease/.
Or ask us to be added to our shared Dropbox folder.

URL scheme handling in Xojo


Handling URL schemes in both Mac and Windows can be tricky.
For Mac you need to define plist entry to declare the URL scheme and later handle the AppleEvent.
For Windows it is more difficult. First you edit registry to declare your URL scheme. Than you need to handle the URL as start parameter. But as a second copy of your app may be launched, you need to talk yourself to the first instance via IPCSocket and pass URL command to main app.

Robert Beier from Dibomedia GmbH in Leipzig recently implemented a helper class to handle this and put it on githup:

github.com/CranberryStackCookie/xojo-url-scheme

Feel free to send feedback including bug fixes to him. And next time you meet him at a Xojo conference, you can of course invite him for a drink!

Special Complete Upgrade offer for MBS Xojo Plugins


For next plugin release 17.4, we will have some reorganization in the plugins. Some smaller plugins get merged, some older stuff dropped and some parts move to other plugins. There may some change needed for people who don't have the Complete license key.

As over 80% of our users have the Complete set instead of individual parts, we make a special offer to all users with individual parts:

Buy the Complete Update in August 2017 to go from whatever part you have to the complete set.
Depending on what part you have, you save up to 50% this way: Order now

We will not stop selling individual parts right now, but as of today we remove QuickTime, Controls, Lion & Leopard from the price list.

Please do not hesitate to contact us for questions.

MBS Xojo Plugins, version 17.4pr1


New in this prerelease of the 17.4 plugins:
  • Updated DynaPDF to version 4.0.12.32.
  • Fixed memory leak in XL Plugin for Windows (leak of GDI handles).
  • Added RAWSocketMBS class.
  • Changed DynaPDFMBS.HighlightPattern to create highlight annotations instead of drawing rectangles.
  • Fixed bug in BarcodeGeneratorMBS class with generating barcode without text.
  • Added exceptions for NSImageMBS constructors. You'll get an UnsupportedOperationException if image creation fails.
Download: monkeybreadsoftware.de/xojo/download/plugin/Prerelease/.
Or ask us to be added to our shared Dropbox folder.

Archives

Aug 2017
Jul 2017
Jun 2017
May 2017
Apr 2017
Mar 2017
Feb 2017
Jan 2017
Dec 2016
Nov 2016
Oct 2016
Sep 2016
Aug 2016
Jul 2016
Jun 2016
May 2016
Apr 2016
Mar 2016
Feb 2016
Jan 2016
Dec 2015
Nov 2015
Oct 2015
Sep 2015
Aug 2015
Jul 2015
Jun 2015
May 2015
Apr 2015
Mar 2015
Feb 2015
Jan 2015
Dec 2014
Nov 2014
Oct 2014
Sep 2014
Aug 2014
Jul 2014
Jun 2014
May 2014
Apr 2014
Mar 2014
Feb 2014
Jan 2014
Dec 2013
Nov 2013
Oct 2013
Sep 2013
Aug 2013
Jul 2013
Jun 2013
May 2013
Apr 2013
Mar 2013
Feb 2013
Jan 2013
Dec 2012
Nov 2012
Oct 2012
Sep 2012
Aug 2012
Jul 2012
Jun 2012
May 2012
Apr 2012
Mar 2012
Feb 2012
Jan 2012
Dec 2011
Nov 2011
Oct 2011
Sep 2011
Aug 2011
Jul 2011
Jun 2011
May 2011
Apr 2011
Mar 2011
Feb 2011
Jan 2011
Dec 2010
Nov 2010
Oct 2010
Sep 2010
Aug 2010
Jul 2010
Jun 2010
May 2010
Apr 2010
Mar 2010
Feb 2010
Jan 2010
Dec 2009
Nov 2009
Oct 2009
Sep 2009
Aug 2009
Jul 2009
Apr 2009
Mar 2009
Feb 2009
Dec 2008
Nov 2008
Oct 2008
Aug 2008
May 2008
Apr 2008
Mar 2008
Feb 2008