Bugs in EncodedImage and BitmapField

Hi guys,.

I was badly put to scale down a large image (1600 x 1200) taken

w / BB to fit on the Pearl camera. I use api EncodedImage for scale

and send it to BitmapField. But this cause a system reboot. When I

use BitmapField with the image without scaling, I will get an out of memory

exception and my app will not work again.  BitmapField will work only w /.

small images.

I had a problem with that, and it seems that, on some devices, an error arithmatic will cause the device to reboot. This is probably due to an argument of the wrong size on the Bitmap you generate. Values getWidth() and getHeight() will return a value of Fixed32 with some height and the width of the image resizing product (even if it is false). I solved the problem by encapsulating all the numbers in a Fixed32 object and using the Fixed32.div () method.

E.g.

Bitmap b = EncodedImage.getEncodedResource("myImage.png").scale32 (Fixed32.div (Fixed32.toFP (1600), Fixed32.toFP (w_scale)),)

Fixed32.div (Fixed32.toFP (1200), Fixed32.toFP (h_scale)));

Tags: BlackBerry Developers

Similar Questions

  • Place aligned EditField and BitmapField on PopupScreen

    Hello guys '

    I want to place aligned EditField and BitmapField on PopupScree. But I can't place these 2 fields.

    I used HorizontalFieldManager and VerticalFieldManager of the place. It does not work.

    HorizontalFieldManager hmanager = new HorizontalFieldManager();
    VerticalFieldManager vmanagerRight = new VerticalFieldManager();
    VerticalFieldManager vmanagerLeft = new VerticalFieldManager();
    
    statusLabel = new LabelField();
    direction = new Bitmap(15, 15);
    directionBitmap = new BitmapField(direction);
    
    vmanagerLeft.add(directionBitmap);
    vmanagerRight.add(statusLabel);
    
    hmanager.add(vmanagerLeft);
    hmanager.add(vmanagerRight);
    
    progressPopup = new PopupScreen(hmanager);
    
    ...
    

    What solution is the best?

    Tnx guys

    What you see?  The fields appearing at all or are they not be presented as you wish?

  • f keys and shortcut keys stopped working tried all the bugs found here and there of win7 + microsoft 4000 ergonomic keyboard

    have tried all the bugs found here and there, that is to say updated drivers uninstalling and reinstalling etc.   Win7 + microsoft 4000 ergonomic keyboard I think it's maybe a defective keyboard

    Hi Cynthia,.

    Thanks for choosing Microsoft Community Forums.

    Based on the description of the problem, it seems that you are having problems with the Fn keys and access keys stopped working.

    (1) have tried to check with another keyboard?

    (2) have tried to connect the keyboard to the other computer?

    (3) have you made changes on the computer before this problem?

    I suggest to follow the steps on the screen, keyboard and check.

    Type without using the keyboard (on-screen keyboard)

    http://Windows.Microsoft.com/en-CA/Windows7/type-without-using-the-keyboard-on-screen-keyboard

    I hope it helps. If you have any questions about Windows in the future, please let us know. We will be happy to help you.

  • I installed the fix for bug TB31.1 and now my e-mail lists do not work because TB does not recognize it as a reference to a list of e-mail addresses.

    I get an error message that says:

    < "list name" > list name is not a valid e-mail address because it is not the form user@host. You need to correct before sending the e-mail message.

    It is true for lists I often used in new buildings, old and new of these lists since the upgrade.

    Well, it of a regression and pointed out that the Bug #1060901. If you have a Bugzilla account, please consider voting for this question.

    Several other people have sent in the same request of support you, noting that it happened after they upgraded to version 31.1.

    The exact error message is: XXXX is not a valid e-mail address, because it is not the form user@host. You need to correct before sending the e-mail message.

    This happens in Thunderbird 31.1.0 when the description of your mailing list includes several words separated by spaces.

    Well that isn't ideal, these workaround solutions should allow you to use your mailing lists until a proper fix is implemented:

    • All by composing an email open the address book and select the list you want to send, to highlight all the names in the list and drag them to the To: box. This example uses your existing data without changing it.
    • Replace white "" between the words in the descriptions of these lists with an underscore "_". This requires modification of your descriptions of mailing list (s).
    • Upgrade to an earlier version and disable automatic updates (Windows)

    On the automatic updates

    Automatic updates are by default in Windows.

    You can Customize this behavior, however, it is under Tools > Options > advanced > update.

    My suggestion would be to put to check for updates but let me choose weather to install., especially if you depend on critical business e-mail / important or personal questions.

  • Why doesn't Java Deployment Toolkit (click-to-play) is blocked, as the referenced bug is closed and there is no security problem not known in Version 7 U51?

    In my view, it is important to block insecure addons. But if you do it should be an open bug assigened. The bug referenced to this add-on is already resolved, so I do not know why this plugin is disabled. https://Bugzilla.Mozilla.org/show_bug.cgi?id=636633

    I have the problem that I want to use Secure_Auth that uses the Deployment Kit Java of nasty (via javascript) way that firefox does not see the deployment kit must be started. This is why I have not expected this plugin still for this web site. Since there is no available documentation how to do this configuration in a config file that I'm stuck at the moment.

    I'm a little surprised liitle which blocks all versions (same secure versions) is a way to get a good user experience.

    Concerning

    Martin

    MG_DAU,

    Why do you think that the problem is caused by the block of Java Deployment Toolkit, not Java itself? See http://www.java.com/en/download/faq/deployment_toolkit.xml and this document I found with a google search:

    For general information on the use of Java on trusted sites, see:

  • Satellite P500 - 1 6 - small bug between plate and screen.

    Hello

    I have a little bug (in Dutch: "donderbeestje") between the glass protection and the current screen.
    When I bought the laptop they scream to me that they can't do something and it's not under warranty from Toshiba.

    For me, it should be under warranty from Toshiba.
    The screen with its upper layers must be closed securely so that no foreign bodies can enter the interval.

    So my question is if it's under warranty, or if not, what can I do to get out of this thing here?

    Kind regards

    Pascal.

    > So my question is if it's under warranty, or if not, what can do to get out of this thing here?
    If you think that there is something wrong with the equipment of s for laptop, then you should get in touch with a local ASP from Toshiba.
    Technicians could check that and could provide more your information if it is fault of s material.

    Mate sorry but on this virtual level it of difficult to say if its hardware problem.

  • Y at - it shows a bug with Hide and regions in 4.1.1.00.23?

    Hi all

    I tried to put a subregion Hide and Show area on a page. It is supposed to have a subregion of the form of each side (i.e. above and below).

    'View' of the region will show a "View only" control with a text and a picture inside.

    When I create the subregion Hide and Show area and add the control. everything seems to work as expected. However, when I then moves the subregion so that it is now between the subregions two form, 'view' is no longer something watch. The arrow changes, but that's all. It's as if the display control had ceased to exist. Move that the subregion any where from there does not change the behavior - show it only control is not displayed.

    Does anyone know if this is a known issue with 4.1.00.23? If so, is there a workaround?

    Thank you very much

    PT

    There seems not to be a bug and it seems not be a workaround.

    To recreate (at least in version 4.1.1), in the tree, create two subregions of form and add some controls. Create a subregion Hide and Show, and then add a control. If you run the page now, it should appear normal (i.e. the content in the skin and see the subregion will be visible when you click on show). Now, move the sub-region Hide and Show via drag and drop to between the two sub-regions form. If you run the page now, it should appear that there is no content in the skin and see the sub-region, despite the fact that, in the design view control is always there.

    See the bug itself, swap component mode. You will notice that even if the sequence of sub region numbers appear correct, the physical order of the sub regions will always be as they were when the subregion to hide and see the creation.

    Thus, it will look something like this:

    Shape 90 1 sub-region

    Subregion 230 form 2

    100 hide / display the subregion<-- in="" tree="" view,="" this="" will="" appear="" to="" be="" between="" form="" sub="" region="" 1="" and="" 2,="" in="" component="" view,="" it="" still="" appears="" at="" the="">

    To fix, go back to tree, drag hide and show of the subregion at the bottom, return to the view of the component, change hide and show of the subregion it and manually change the value of the sequence to a value between Sub regions 1 and 2 form. This will be:

    • go hide and show the sub-region to form Sub region 1 region 2 Sub form
    • the content of the Hide and Show under region now appears when you click to perform the operation to see the

    Hope this helps someone someday.

    PT

  • Bug: ViewObject programmatic and form Validation

    Hello

    I've set up a display object as described here: http://stackoverflow.com/a/14611815/59087

    Assigned to the view object is a shown here validation rule: http://i.imgur.com/HXiwPUL.png

    The StartDate attribute value must be a date equal to or earlier than the EndDate attribute.

    The view object is not supported by an entity. With the help of an entity here is not logically necessary as these input parameters are intended to be transmitted directly to a report. The parameters are independent of an entity and rather arbitrary.

    When a February 1, 2013 start date and an end date of February 28, 2013 are given, a validation rule error: http://i.imgur.com/8v4007w.png

    You can see how the view object has been created here: http://imgur.com/HQLNh5U, uqtt5Fq, X8fldVt, HXiwPUL, 8v4007w #0

    This was recorded as a SR with Oracle and received the following response, "I guess the question here is this place where you added the validation. If this is added to the attribute level, then he will be fired by updating the attributes and there is no guarantee of the order of the attributes updates. If this is not the right place for you to add validation dealing with several attributes of value. Ideally it should have been added as entity level validation in your OE. And if your VO is updatab; e, that he must have been supported by EO-it is British Colombia was designed.
    If EO the introduction is not possible now, maybe, you can try to replicate the validation at the attribute level and trigger the validation of the attribute last updated"

    I'm fairly certain that by selecting programmatic (http://i.imgur.com/HQLNh5U.png), this means that no entity is necessary for the view.

    In addition, given that the Rules of Validation tab appears (http://i.imgur.com/HXiwPUL.png), and a comparison rule can be defined, it leads me to believe that it is a bug.

    As a workaround, I can define an 'empty' entity that is not accompanied by a database object and performs an entity-level validation. I don't like this because it is a little more work and requires the implementation of a transitional 'ID' fake to uniquely identify the row.

    Other ideas (how can I enforce the order of updates of attributes so that StartDate is filled in the view before EndDate object, thereby ensuring that the validation is successful)?

    Published by: Dave.Jarvis on February 7, 2013 11:31

    Dave, support has a point here. Level of the attribute validation cannot cover the rules that have other attributes in the rule. In this case, you are detailed on the order of the attributes. The reason is that the validation of the attribute levels fires when the attribute changes its value. This is why the framework allows entity level validation (naturally only on an EO) where you can assume that all values are up to date and can be compared with each other.
    However, on a view levels validation object only transient attributes attribute is permitted. As is the validation of the attribute levels the same ruling applies as for EO. You should not compare two attributes of a levels of attribute validation rule as you cannot predict the order attributes and so you cannot predict the outcome of the rule.
    I do not see a bug here, such as validation to only at the level of the attribute.

    OK, what can you do?
    You can add an EO (as you said already) and add a level entity rule it. It will work, but needs some work more.
    You can remove the date field validation rules. MinValue and validate them in for example a bean or you can even use a method that is exposed in the client interface of your VO for this. Then, you call the method when the user clicks the button before you start the report. When the rule is triggered, you do not start the report, but the message.

    Timo

  • Very strange bug with AIR and native process (Windows 7, EXE)

    Hi all!

    The situation is:

    I did an Application AIR, inside which a native process - running EXE file.

    I use Flash CC as IDE and tried to use the compilation as EXE with AIR 2.6 and 3.6 - results are the same.

    So I insert inside a control if the nativeprocess is supported or not and the native process is supported all the time.

    When I come to install the application and run it - the first attempt is good - everything works as a must: internal EXE is called by my Application with the necessary parameters so long I need.

    However if I close the application, then if it run not new - internal EXE is not starting at all, depends on number of attempts to restart the application.

    Then only is to uninstall, install back and then you'll be a session more successful EXE-internal requests, until the forthcoming resumption of the application.

    That's all.

    I tried to "google it" but without success. The bug is probably very rare.

    Help me please?

    Update: compiling with the Flash IDE of CC, he works all the time with no problems.

    Update-2: when I run EXE installator, there will be a notification "same version is installed, etc.', then choose 'Run Now' - he also works without any problem.

    Well, I found the solution and the answer by myself and it is here please:

    In the case with the same situation above, you will need to add a single line in your AS3 code

    nativeProcessStartupInfo.workingDirectory = File.applicationDirectory;

    And you will be so happy

  • CS6 / AVCHD / spans Clip Bug / what cameras and media Types are affected?

    This known bug in CS6 has been well documented about the potential symptoms, known problems and solutions of transcoding.

    Video and audio glitches. AVCHD video

    It would also be very useful for CS6 users be able to precisely identify the problematic cameras and/or types of media in order to make informed decisions when buying a camera, or when you receive multimedia files with the intention to edit in Premiere CS6.

    If there is a definitive list of the specific camera manufacturers / models, or the types of media that are affected by this bug, I was not able to find it.

    Of course that this bug has been fixed in June 17, out of the update Creative Cloud subscription. It remains to be seen if the hotfix will be brought back to CS6.

    Thank you.

    Confirmed as not cameras expose the bug:

    Panasonic GH2

    Sony HDR SR-12

    Cameras, confirmed that do have the bug:

    Canon Vixia HF G10

    The CS6 Pro first (6.0.4) update fixed a bug with split AVCHD clips: http://bit.ly/DVA_updates

    (BTW, a new update After Effects CS6 coming soon.)

  • Radar bugs Apple 5182703 and 5182760

    Everything worked well.  Tonight I tried to start my VM and was greeted with the message: "do not put a virtual RAM file on an external drive (in ' / var/tmp / / vmware-host/mm0") of radar Apple solution 5182703 and 5182760 bug. ««» Set mainMem.bug146468.disableWorkaround = True to substitute.  Cannot allocate memory.  Power main Mem module has failed. "What?  I searched the forums for answers and found a reference to this problem, so I searched my HARD drive for the file in question, vmware-home and found, but there is no file there to change.  I also tried to search the referenced thread about where to find things to vmware, but did not find another location for the file.  What should I do now?  Is it possible to recreate this file, because it seems to go missing?

    Help!

    xntrick wrote:

    But while I'm waiting, how to avoid this error message on the days when my computer starts on an external HARD drive and I need to use my machine virtual Virtual PC?

    He already says what to do in the message you posted.

    Add the following to the configuration the target Virtual Machine's .vmx file.

    mainMem.bug146468.disableWorkaround = "True"
    
  • 4.0.2 bug - Page export and import of the issues

    When you export an individual page in an environment (for example, a development environment), and then import it into another environment (in this example, the QA environment).
    a. all models associated with this page is lost and you will need to go to edit the page and select Page templates, regions, buttons, elements, etc.
    b. If you import a page of interactive report that already exists in the environment that you import in, registered version of the interactive report that existed for the page are lost.

    Well, in the environment we had, if we HAD a critical bug, we might plan a failure and install the new changes approx. would be low since we had our own house built SSO application... Migrate us app integration, would go through a test script and confirm the app was ready and DBA migrate app all pl/sql code supported production...

    Since they have existed in 3 separate workspaces, we could NOT only copy pages between apps...

    It was a small price to pay for the audit-ability...

    Thank you

    Tony Miller
    Webster, TX

    What happens if you were really stalking a paranoid schizophrenic... They would know?

  • BUG? (%) Dial and dial gauges return odd if negative values of numbers

    Using AnyChart 5 and Apex 4.0

    When using a Dial gauge (percent), I'm trying to measure quarter percentage growth during the quarter.

    Tell me Yes we have sales of $100 in the 2nd quarter of 2009 and the sale of $80 in the 2nd quarter of 2010.

    We should see a percentage of 20% growth.

    My query returns a single line as for the gauge. However the gauge indicates 1%. Positive rather than negative.

    When I run my query in TOAD and APEX SQL WORKSHOP I get the OK - 20%.

    So I pull the XMLfile URL on the < embed > tag and drop it in my browser. The XML returned with a positive 1 as the value of the gauge pointer. Because the XML generated by the apex_util.flash procedure, I'm guessing that there is a bug?

    XMLfile = "http://apex.server.com:PORT/pls/apex/apex_util.flash?p=108:5:3130601357809295:FLOW_FLASH_CHART5_R5524931725885645_en."

    generated:

    ... < type pointer = "needle" value = "1" color = "0xF1683C" >...

    I even tried to make the series ' SELECT-20, max_val 100, low_val-100, 100 hi_val OF THE DOUBLE ' and then got a positive 1% on the dipstick?

    ---------
    Published by: WannaRock on August 3, 2010 14:16
    ---------
    Tried to switch to a regular dial as opposed to dial (percent). But then, any value should be returned, the dial has returned a value of-99. I need to try a few things and update this post...

    -----
    Published by: WannaRock on August 3, 2010 14:26
    -----
    Seems to be a problem when there is a negative value, AND you specify a up/down column in your query. IF I delete the columns high and low of the query, I get the right numbers when they are positive values. But the negatives do not return (for example, I had a 1% where I should have gotten a-84%). Strange behavior.

    Hi Walter,

    You hit a limitation where gauge cards currently do support the display of positive values. However, this restriction has been removed for Flash 5 graphics and support for the display of negative values on the gauge cards will be included in our next release. This issue is followed by bug 10024437.

    In the meantime, you will have to customize your chart XML in order display negative values. This would require that you replace the chains of substitution #SCALE_DATA # and #DATA # in the custom with your own and area of XML information.

    Kind regards
    Hilary

  • Help - Flash 8 display bug w / transparency and Drawing API

    Hello

    I was wondering if anyone has a work around for this bug?

    When I use the drawing API to create a full circle in a new MovieClip (with the drawCircle function defined in the docs), and then set the new video at 50% alpha, half of the race is set to 100% alpha. It is easy to reproduce, simply paste the following text in a new flash document and you'll see what I mean:

    createEmptyMovieClip ("a", 10);
    This.a._x = 50;
    This.a._y = 50;
    This.a._visible = true;
    This.a._alpha = 50;
    this.a.lineStyle (10, 0xFF0000, 100);
    this.a.beginFill (0 x 888888, 100);
    drawCircle (a, 50, 50, 50);
    this.a.endFill ();

    function drawCircle(mc:MovieClip,_x:Number,_y:Number,_r:Number):Void
    {
    Taken directly from the Flash documentation
    mc.moveTo (x + r, y);
    mc.curveTo (r + x, Math.tan (Math.PI/8) * r + y, Math.sin (Math.PI/4) * r + x)
    Math.Sin(Math.pi/4)*r+y);
    mc.curveTo (Math.tan (Math.PI/8) * r + x r + y, x, r + y);
    mc.curveTo (-Math.tan (Math.PI/8) * r, r + x, y-Math.sin (Math.PI/4) * r + x)
    Math.Sin(Math.pi/4)*r+y);
    mc.curveTo (r + x, Math.tan (Math.PI/8) * r + y, r - + x, y);
    mc.curveTo (- r + x, - Math.tan (Math.PI/8) * r + y,-Math.sin (Math.PI/4) * r + x)
    -Math.sin(Math.PI/4)*r+y);
    mc.curveTo (-Math.tan (Math.PI/8) * r + x, - r + y, x, - r + y);
    mc.curveTo (Math.tan (Math.PI/8) * r, - r, + x, y, Math.sin (Math.PI/4) * r + x)
    -Math.sin(Math.PI/4)*r+y);
    mc.curveTo (r + x,-Math.tan (Math.PI/8) * r + y, r + x, y);
    }

    You can see that it looks like there are two lines instead of one. This is a very serious bug in my chart and I don't know how to get around it! Does anyone have advice?

    I use Flash 8.

    Thank you very much
    Michael

    1/2 stroke is overlaid with the filling. to remedy this, create your race 'outside' of the filling. That is to say, draw the line with the same Center, but with a RADIUS has increased to 1/2 the width of the outline.

  • There is a bug with GarageBand and download on soundcloud

    I wanted to download a song on soundcloud, so I named it the flamethrower. I put a cover photo and set it to the public. And assign the average quality. But this error screen appeared. I put it the same thing this time, but as an uncompressed file. AIFF.

    She is still the same please help or at least tell what happened to you too (important note: I am in Korea, not America.)

    Welcome X8_minithug_8X,

    Thank you for your first post on Apple Support communities.  I'd like to help you with the download of your Garageband creations SoundCloud.  I found all kinds of great artists there, so I know it's important, that you can get your downloaded music.

    The below-referenced article has instructions on how to download on SoundCloud.

    Send a song from GarageBand to SoundCloud

    You mentioned being in Korea would affect your ability to access to SoundCloud or feature.  It may be possible that this feature is not available in your area.

    Best wishes

Maybe you are looking for

  • Restored iPhone 6 sauvegardΘ iCloud, ok except iTunes.Full library if poster not only purchase music. Some songs will play-"product is not available.

    I use an iPhone 6, 64G.  Running iOS 9.3.1 (I3E238); It comes with the music on the iPhone app.  My phone was stolen and I restored the replacement using iCloud.  Everything works, and all the information has been restored except music.  I tried enab

  • WebCam works does not in Satellite L50-A-18R in Windows 10

    Hello A few weeks after an update of windows or something, the webcam has stopped working under windows. It is not a hardware problem, as it works fine under Ubuntu. Laptop model: Toshiba Satellite L50-A-18RWebcam hardware ID: USB\VID_04F2 & PID_B41A

  • Pavillion 19: care pack

    Hi, can someone please tell me, if it is important to have carepack? My computer is now 2 years old, and buy another seems to me is profitable. However I too a printer. I have the software support with ATT. Should I really have the hardware support?

  • J4680

    I can't install the HP software. Fatal error, scan.msi and impossible to include msxml4.dll. Tried to repair the two files, tried to copy CDs, tried software download at HP, and nothing is working. Impossible to believe that HP has become so complica

  • How do its HP S2331 monitor?

    Now that I know that I don't have speakers, how do I sound?  Doesn't look like there is anywhere on the screen to connect speakers.  Help!