AnsweredAssumed Answered

BE_ClipboardGetText() crashes FM when clipboard has image

Question asked by user19752 on Sep 28, 2018

Using BE-plugin 4.0.2 on FM17 and Win7.

 

The function should return empty for non-text objects,

https://baseelementsplugin.zendesk.com/hc/en-us/articles/205350507-BE-ClipboardGetText

but it returns sometime a character (I saw '(', '?', and '|') on image, or crash FM (tested on data viewer).

 

For example, copy on "Paint" then BE_ClipboardFormats get

DataObject

Embed Source

Native

OwnerLink

Object Descriptor

CF_METAFILEPICT

CF_DIB

Ole Private Data

CF_ENHMETAFILE

CF_BITMAP

CF_DIBV5

 

then calculate

BE_ClipboardGetText("CF_BITMAP")

immedietly crash.

 

I guess there is not enough list of formats and default is text?

Outcomes