# FBlobCreate failure

**URL:** <https://forum.commonvisionblox.com/t/fblobcreate-failure/182>\
**Category:** C-style API\
**Tags:** foundation, blob, setup, logging\
**Created:** [August 1, 2017, 10:07am UTC](https://forum.commonvisionblox.com/t/fblobcreate-failure/182 "2017-08-01T10:07:19Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![YvesDaoust](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@YvesDaoust](https://forum.commonvisionblox.com/u/YvesDaoust)\
**Post date:** [August 1, 2017, 10:07am UTC](https://forum.commonvisionblox.com/t/fblobcreate-failure/182/1 "2017-08-01T10:07:19Z")

</div>

I am using the FBlob module.

On one machine, it works as should.

On another with the same application under the same conditions, FBlobCreate returns NULL.

The Foundation license is granted on both.

What can be the reason ? How can I investigate ?

---

<div class="post-metadata">

**Author:** ![YvesDaoust](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@YvesDaoust](https://forum.commonvisionblox.com/u/YvesDaoust)\
**Post date:** [August 1, 2017, 10:15am UTC](https://forum.commonvisionblox.com/t/fblobcreate-failure/182/2 "2017-08-01T10:15:25Z")

</div>

Maybe I can add that the sample program CSFBlobExample works on both…

---

<div class="post-metadata">

**Author:** ![Frank](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/frank/32/42_2.png) [@Frank](https://forum.commonvisionblox.com/u/Frank)\
**Post date:** [August 1, 2017, 12:17pm UTC](https://forum.commonvisionblox.com/t/fblobcreate-failure/182/3 "2017-08-01T12:17:01Z")

</div>

You are using the FBlob OCX, right? Is the image source and image format on both machines the same? Are both systems identical when it comes to software (CVB, operating system, etc.)?

Is your workflow the same as in the mentioned tutorial, with the binarization and so on?

---

<div class="post-metadata">

**Author:** ![YvesDaoust](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@YvesDaoust](https://forum.commonvisionblox.com/u/YvesDaoust)\
**Post date:** [August 1, 2017, 12:47pm UTC](https://forum.commonvisionblox.com/t/fblobcreate-failure/182/4 "2017-08-01T12:47:55Z")

</div>

No, I am using the DLL.

The application is the same, including image format, but

- Windows 8.1 vs Windows 10
- CVB 12.01.002 vs CVB 13.00.000.

The workflow is irrelevant, as the creation of the blob object fails.

---

<div class="post-metadata">

**Author:** ![Frank](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/frank/32/42_2.png) [@Frank](https://forum.commonvisionblox.com/u/Frank)\
**Post date:** [August 1, 2017, 1:17pm UTC](https://forum.commonvisionblox.com/t/fblobcreate-failure/182/5 "2017-08-01T13:17:34Z")

</div>

Then the conditions are not the same, right? You are using different OS and CVB versions. Do these reflect both systems you are referring to (Win8.1 + CVB 12.01.002 and Win10 + CVB 13.00.000)? The latter is the one where the creation of the FBlob object fails? You’ve verified that the tutorial runs properly with both combinations?

---

<div class="post-metadata">

**Author:** ![YvesDaoust](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@YvesDaoust](https://forum.commonvisionblox.com/u/YvesDaoust)\
**Post date:** [August 1, 2017, 1:18pm UTC](https://forum.commonvisionblox.com/t/fblobcreate-failure/182/6 "2017-08-01T13:18:54Z")

</div>

Yes, I said it in my second message. I am now busy upgrading the first system to 13.00.000

---

<div class="post-metadata">

**Author:** ![parsd](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/parsd/32/7_2.png) [@parsd](https://forum.commonvisionblox.com/u/parsd)\
**Post date:** [August 1, 2017, 1:51pm UTC](https://forum.commonvisionblox.com/t/fblobcreate-failure/182/7 "2017-08-01T13:51:10Z")

</div>

@Frank informed me about your issue: Might it be that you call `FBlobCreate(NULL, 0)`? I looked into the source code and saw that there is a regression regarding no image being provided. This was not checked by our blob test suite. I created a ticket in our bug database and will fix the issue this week.

Can you work around this issue by providing an image upfront or do you need a replacement library? If yes I need additional information regarding whether you develop with CVB Win32 or x64.

---

<div class="post-metadata">

**Author:** ![YvesDaoust](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@YvesDaoust](https://forum.commonvisionblox.com/u/YvesDaoust)\
**Post date:** [August 1, 2017, 2:11pm UTC](https://forum.commonvisionblox.com/t/fblobcreate-failure/182/8 "2017-08-01T14:11:37Z")

</div>

Yep, was that. I have passed a valid image instead of NULL and the creation succeeds ! (With no version upgrade.)

Thanks.

---

<div class="post-metadata">

**Author:** ![parsd](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/parsd/32/7_2.png) [@parsd](https://forum.commonvisionblox.com/u/parsd)\
**Post date:** [August 2, 2017, 7:55am UTC](https://forum.commonvisionblox.com/t/fblobcreate-failure/182/9 "2017-08-02T07:55:11Z")

</div>

The issue has been fixed in version 2.2.8.919 of the _Foundation.DLL_ and will be in the next bug fix release :cvb: (13.00.003).

You can check for future releases here:

[https://forum.commonvisionblox.com/t/common-vision-blox-for-64-bit-windows/368?u=parsd](https://forum.commonvisionblox.com/t/common-vision-blox-for-64-bit-windows/368)

or

[https://forum.commonvisionblox.com/t/common-vision-blox-for-32-bit-windows/369?u=parsd](https://forum.commonvisionblox.com/t/common-vision-blox-for-32-bit-windows/369)

---

<div class="post-metadata">

**Author:** ![YvesDaoust](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@YvesDaoust](https://forum.commonvisionblox.com/u/YvesDaoust)\
**Post date:** [August 2, 2017, 8:10am UTC](https://forum.commonvisionblox.com/t/fblobcreate-failure/182/10 "2017-08-02T08:10:08Z")

</div>

I am not going to try that. The installer for version 13.00.000 hangs and waits forever on my Windows 8.1 machine.

---

<div class="post-metadata">

**Author:** ![parsd](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/parsd/32/7_2.png) [@parsd](https://forum.commonvisionblox.com/u/parsd)\
**Post date:** [August 2, 2017, 8:29am UTC](https://forum.commonvisionblox.com/t/fblobcreate-failure/182/11 "2017-08-02T08:29:06Z")

</div>

I am sorry to hear that. We invest a lot of time in giving you a good setup experience. But if you have issues with the setup, you could enable MSI logging via the Windows Registry so we can try to find the cause.

1. Download [MSILogging.zip](https://forum.commonvisionblox.com/uploads/commonvisionblox/original/1X/451b7c75736a7a2d37c429829b4a840fd7dd23ec.zip) (356 Bytes) and unzip it onto a local folder like your _Desktop_. When double clicking the _reg_-File you can add the settings to the Windows Registry.
2. After that start the setup. The _log_-file will then be saved into your `%temp%` folder with a unique name (random letters and numbers). This is normally the newest log file then.
3. Please send this file to our support with a short error description so we can analyze it:  
[https://www.commonvisionblox.com/en/request-support-2/](https://www.commonvisionblox.com/en/request-support-2/)

More information about setup analysation can be found here:  
[https://forum.commonvisionblox.com/t/setup-of-cvb-fails-during-installation/87?u=parsd](https://forum.commonvisionblox.com/t/setup-of-cvb-fails-during-installation/87)

---

<div class="post-metadata">

**Author:** ![YvesDaoust](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@YvesDaoust](https://forum.commonvisionblox.com/u/YvesDaoust)\
**Post date:** [August 2, 2017, 8:42am UTC](https://forum.commonvisionblox.com/t/fblobcreate-failure/182/12 "2017-08-02T08:42:02Z")

</div>

No, I am not going to try that. I already wasted enough time on this problem and there was an easy workaround.

---

<div class="post-metadata">

**Author:** ![parsd](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/parsd/32/7_2.png) [@parsd](https://forum.commonvisionblox.com/u/parsd)\
**Post date:** [September 25, 2017, 12:23pm UTC](https://forum.commonvisionblox.com/t/fblobcreate-failure/182/13 "2017-09-25T12:23:19Z")

</div>

:cvb: 13.00.003 has been released today containing the fix.
