Re: [MBS] Crash in MBS_MacCF_CF_Plugin_19832

2019-01-20 Thread Christian Schmitz



> Am 20.01.2019 um 17:57 schrieb Michael Diehr :
> 
> Hi Christian, 
> 
> I'm seeing crashes in the following code:
> 

Is that 19.0pr9?

Because I fixed something a few weeks ago which I broke a few weeks before that.


Sincerely
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/


___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] Crash in MBS_MacCF_CF_Plugin_19832

2019-01-20 Thread Michael Diehr
I'm able to prevent the crash by adding extra Retain/Release calls as shown 
below, but am I just causing a memory leak?


Private Function BinaryPlistToDictionary(data as String) as Dictionary
  #if TargetMacOS

LogTrace CurrentMethodName + " length=" + str(data.lenB)
if data = "" then
  return nil
end if

dim cb as new CFBinaryDataMBS(data)
if cb = nil then
  return nil
end if
cb.RetainObject

dim co as CFObjectMBS = NewCFObjectMBSFromXML(cb)
if co = nil then
  return nil
end if
co.RetainObject

dim cd as CFDictionaryMBS = CFDictionaryMBS(co)
if cd = nil then
  return nil
end if
cd.RetainObject


dim d as dictionary = cd.Dictionary

cd.ReleaseObject
co.ReleaseObject
cb.ReleaseObject

cd=nil
co=nil
cb=nil

return d
  #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
>  return nil
>end if
>dim cb as CFBinaryDataMBS = NewCFBinaryDataMBSStr(data)
>if cb = nil then
>  return nil
>end if
> 
>dim co as CFObjectMBS = NewCFObjectMBSFromXML(cb)
>if co = nil then
>  return nil
>end if
> 
> 
>dim cd as CFDictionaryMBS = CFDictionaryMBS(co)
>if cd = nil then
>  return nil
>end if
> 
>dim d as dictionary = cd.Dictionary
>return d
>  #endif
> End Function
> 
> The crash log looks like this:
> 
> Thread 15 Crashed:
> 0   com.apple.CoreFoundation  0x7fff86ae4792 _CFRelease + 1346
> 1   MBS_MacCF_CF_Plugin_19832.dylib   0x00010efcfb5d 
> CFObjectDestructor(REALobjectStruct*) + 29
> 2   iScreensaver Designer 6.debug 0x00010a204bf6 
> CFObjectMBS.__exit%%o + 54
> 3   XojoFramework 0x00010c6273af RuntimeUnlockObject 
> + 815
> 4   iScreensaver Designer 6.debug 0x00010b7aad87 
> ciPhoto3.BinaryPlistToDictionary%o%os + 1335 
> (/ciPhoto3:11)
> 
> Is this my fault, or is there perhaps a double-free going on?
> ___
> Mbsplugins_monkeybreadsoftware.info mailing list
> mbsplugins@monkeybreadsoftware.info
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
> 

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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
end if

dim co as CFObjectMBS = NewCFObjectMBSFromXML(cb)
if co = nil then
  return nil
end if


dim cd as CFDictionaryMBS = CFDictionaryMBS(co)
if cd = nil then
  return nil
end if

dim d as dictionary = cd.Dictionary
return d
  #endif
End Function

The crash log looks like this:

Thread 15 Crashed:
0   com.apple.CoreFoundation0x7fff86ae4792 _CFRelease + 1346
1   MBS_MacCF_CF_Plugin_19832.dylib 0x00010efcfb5d 
CFObjectDestructor(REALobjectStruct*) + 29
2   iScreensaver Designer 6.debug   0x00010a204bf6 
CFObjectMBS.__exit%%o + 54
3   XojoFramework   0x00010c6273af RuntimeUnlockObject 
+ 815
4   iScreensaver Designer 6.debug   0x00010b7aad87 
ciPhoto3.BinaryPlistToDictionary%o%os + 1335 
(/ciPhoto3:11)

Is this my fault, or is there perhaps a double-free going on?
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] [ANN] 19.0pr9

2019-01-20 Thread Christian Schmitz
Hi,

* Updated to DynaPDF to version 4.0.25.71.
* Changed default SQL options for connecting to FileMaker via ODBC so it works 
out of the box.
* Changed DynaPDFMBS.Optimize to use in memory flag by default unless you 
change it.
* Added index parameter for IORegistryMBS.PerformanceStatistics function.

Sincerely
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/


___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info