Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, February 21, 2012 12:26:10 AM(UTC)
eng.amalomary

Groups: Registered
Posts: 6


I have a problem with saving bitmap, I'm using L_SaveBitmap function, and and it's return -789, and this error is Invalid structure size, please can you give me a solution for this problem.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, February 21, 2012 5:33:07 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


This error usually happens if you don't provide the correct structure size when using one of our functions. The normal procedure when using any structure is:
1. After declaring the structure, initialize it to zeros.
2. If it has a size member (usually named uStructSize), assign the structure size to that member. In C and C++, this is done like this:
myStruct.uStructSize = sizeof(myStruct);
3. If a function has a struct size parameter, also pass the structure size, like this:
FunctionName(&myStruct, sizeof(myStruct), ...);

If that doesn't solve it, can you send me a small working project that reproduces the problem.
Notes:
1) When you send any attachments, put them in a ZIP or RAR file to ensure our server delivers them correctly.
2) If you are uploading it to our support forum, then don't click on preview, as you will lose the attachment.
3) Please do not send your full application.
4) You can either post here or email the project to support@leadtools.com
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#3 Posted : Wednesday, February 22, 2012 10:41:49 PM(UTC)
eng.amalomary

Groups: Registered
Posts: 6


Dears All,

This is a sample of the application that has the Invalid structure size error.
File Attachment(s):
QRSample.rar (1,153kb) downloaded 31 time(s).
 
#4 Posted : Wednesday, February 22, 2012 11:11:15 PM(UTC)
eng.amalomary

Groups: Registered
Posts: 6


the error is -789 when use the L_SaveBitmap function.
 
#5 Posted : Thursday, February 23, 2012 7:05:25 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


I answered you on the ticket #2012022310000215.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#6 Posted : Monday, February 27, 2012 3:10:44 AM(UTC)
eng.amalomary

Groups: Registered
Posts: 6


Dear Mohammad,

The solution that you give has worked successfully, but the Generated QR-Image is a square black image, I attached the same sample application after editing and the generated QR-Image.
File Attachment(s):
QRSample&QRImage.rar (1,154kb) downloaded 38 time(s).
 
#7 Posted : Tuesday, February 28, 2012 1:03:07 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


AbdlHakim,
I sent you a reply regarding this issue in ticket number 2012022710000379. If you want to follow up, please reply there.
I'm attaching the modified code that I sent you in that ticket for the general benefit.
File Attachment(s):
QRSampleDlg.rar (3kb) downloaded 36 time(s).
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#8 Posted : Tuesday, February 28, 2012 11:15:00 PM(UTC)
eng.amalomary

Groups: Registered
Posts: 6


Dear Mohammad,
Thank you for your support, but when I pass arabic letters the QR-Image doesn't read it, if there is a function in LEADTOOLS or any solution for this, can you give it to me, please.
 
#9 Posted : Wednesday, February 29, 2012 2:54:07 AM(UTC)
eng.amalomary

Groups: Registered
Posts: 6


I attach .RAR file has images to make the subject clear for you.
File Attachment(s):
QRSample&Img.rar (1,158kb) downloaded 33 time(s).
 
#10 Posted : Wednesday, February 29, 2012 5:44:20 AM(UTC)

Ibrahim  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

AbdlHakim,

You already opened an email ticket about this issue. Please use either the forums or email, but not both for the same issue.

 

My colleague Mohammad will follow up your Arabic QR-code problem in ticket# 2012022910000277.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.277 seconds.