Problem with the ATTR_CALLBACK_DATA attribute. When received by routine changes.

With the help of LabWindows/CVI 2013, PC (Windows XP)

I'm passing a pointer to a memory block calloc generated so that when I call a reminder of the instrument of some parameters are available:

ViStatus PLOT_JPlot (struct Level1DataBlock * L1DB_p) {}
G_PanelInfo_p = CreatePanelInfoBlock (L1DB_p, PANEL_JPLOT); a rather complicated routine that use calloc to create and that initializes a bunch of data structures.

...

iHandle = LoadPanelEx (0, JPlotPanel_UIR_file, JPLOT, __CVIUserHInst); load the UIR file panel

....
status = SetPanelAttribute (iHandle, ATTR_CALLBACK_DATA, (void *) G_PanelInfo_p); load the pointer in the area of recall for this Panel data
....

status = CallCtrlCallback (iHandle, JPLOT_CURSORBUTTON, EVENT_COMMIT, 0, 0, 0);

....

}

that translates into a call to

int CVICALLBACK CB_JPlotCursorToggle (int command face, int, int event, void * callbackData, int eventData1, int eventData2) {}

struct PanelInfoConst * G_PanelInfo_p = NULL;
....
switch (event) {}
case EVENT_COMMIT:

GetPanelAttribute (Panel, ATTR_CALLBACK_DATA, & panelcallbackData_p);
G_PanelInfo_p = (struct PanelInfoConst *) panelcallbackData_p;              pointer wrong here.

...

}

}

G_PanelInfo_p ends up being a pointer to somewhere in hyperspace and I get an error of memory - it's pointing to somewhere outside the memory space of the whole process.

Except that this same bit works perfectly for another window. The only difference is that the other window is actually displayed on the screen before I call it "CallCtrlCallback ()" and with this window it has not actually displayed again.

The block of memory is freed when the window is closed.

Bearing in mind that other post:

http://forums.NI.com/T5/LabWindows-CVI/InstallWinMsgCallback-changes-the-Panel-s-attr-callback-data/...

should I use the chained callback function?

Oh, and while I am, which is supposed to appear in the "" Sub * callbackData "parameter of the callback function?" He eventually NULL; I think the entry ATTR_CALLBACK_DATA would he appear.

You are probably using in this issue.

When it comes to custom controls, you can not set or get the data from callback using ATTR_CALLBACK_DATA. Is that more personalized because, the controls use the mechanism of chaining of reminder of the programming interface Toolbox, and once the recalls are chained, you must continue to use the chaining API callback to get and set the recall data.

This help topic describes what you should do instead.

Luis

Tags: NI Software

Similar Questions

  • Anyone who has a problem with the system crashes when importing using the new interface to import

    Anyone who has a problem with the system crashes when importing using the new interface to import

    Can specify you what Adobe program you use so that we do that your post is in the right forum?

  • Hello. I have a problem with the payment process when trying to buy the plan of creative photography of Cloud (one year). the error is: there was a problem processing your order, please contact our Service team customer care for assistance. AfricaBa North

    Hello. I have a problem with the payment process when trying to buy the plan of creative photography of Cloud (one year).

    the error is: there was a problem processing your order, please contact our Service team customer care for assistance. Middle East & North AfricaBahrain: 80081097Egypt: 08000000447Jordan/Kuwait/Lebanon/Qatar/Yemen: English + 44 207 365 0735Jordan/Kuwait/Lebanon/Qatar/Yemen: Arabic/French + 44 203 564 4145Oman: 80077173Saudi Arabia: 8008446638Tunisia, the Morocco and the Algeria: + 33 United Arab Emirates 157324642United: 80004443085Commonthwealth of independent States (CIS): + 44 207 365 0735

    Help me please to solve this problem. I need my lightroom immediately)

    Hi mohamed,.

    Please see the link below to buy the plan of photography:

    Pricing plans and creative Cloud membership | Adobe Creative Cloud

    In case you still have question, please contact sales at Adobe team.

    Adobe Middle East and North Africa

    Kind regards

    Sheena

  • Having a problem with the Muse crashing when opening a Web site I designed in Muse.

    Having a problem with the Muse crashing when opening a Web site I designed in Muse. You need to be able to access this site in order to update for my clients.

    [LASP/updateCaches] TypeError: Error #1009: cannot access a property or method of a null object reference.

    All adventures Rafting | Wenatchee Whitewater Rafting trips - two hours East of Seattle

    Could you please send us the .muse file to [email protected] as well as a link to this topic? If the file is larger than 20 MB, you can use a service like Adobe SendNow, Dropbox, WeTransfer, etc.. Thank you.

  • Problem with the editor attribute PULLDOWN

    When we use the Editor menu attribute drop-DOWN we know the following behavior.

    We have a definition of the content with a non-binding string attribute which is an attribute of pulldown editor configured with queryassetname.

    When its use in the contributor interface following the chronology of the events:

    (1) content > new asset

    (2) assign a value in the launch menu displayed by the editor attribute of pulldown

    (3) save

    (4) modify the same assets and try to put a value empty in the attribute that is assigned pulldown attribute Editor, but it is not possible because there is no possible empty selection to leave blank the value of the attribute as it was by default.

    Thanks for any help in advance.

    Pedro

    Hi Pedro,

    There is a default created for the problem you describe: Bug 17562306 - menu DEROULANT ATTRIBUTE EDITOR not IS NOT HAVE WHITE VALUE for the OPTIONAL ATTRIBUTES.
    However this applies only when you use name QUERYASSETNAME instead of element tags to populate the attribute PullDown.

    I just did a quick test to create a new attribute to dropdown using element tags and it worked fine when I set a single value, saved and then set empty. See screenshots

    I was able to find a workaround for the active query name, it is to add value, then you can use it as a vacuum. See below:

    Add a null value line in the query of the assets of the query result.  In this way, there will be a null value to select in the drop-down menu to remove the value.

    for example SELECT name as the value of the status of Content_C WHERE<>"VO" UNION (SELECT NULL FROM DUAL) ORDER BY VALUE asc NULLS FIRST

    Of workaround seems to work for the attributes of optional or required string using this attribute of menu editor drop-DOWN with a resource request.

    Let me know you have questions.

    Best regards

    Guillermo.

  • Problem with the post OFFICE when using HttpsConnection

    Hello community,

    my scenario:

    I have a piece of code that runs on a BB and a Servlet located on a Tomcat 6.0.18. The code on the BB uses POST to send data. When you use with HTTP POST, everything works like a charm, but I have trouble with the POST and HTTPS.

    It seems that the data is not transferred from BB on the server. The use of the debugger I discovered that the data is written to the output stream (side), but when the servlet calls getParameter() only null is returned.

    To ensure a correct installation, I tried a GET with HTTPS which works very well.

    The given code example is on the side of the unit

    connection = Connector.open(url);
    
    HttpsConnection https = (HttpsConnection)connection;
    
    https.setRequestMethod(HttpsConnection.POST);
    
    https.setRequestProperty(HEADER_CONTENTTYPE, CONTENTTYPE_FORMDATA);
    
    https.setRequestProperty(HEADER_CONTENTTYPE, String.valueOf(length));
    
    out = https.openOutputStream();out.write(PostMessage.getBytes());
    
    in = https.openInputStream();
    
    ResponseMessage = new byte[(int)https.getLength()];
    
    in.read(ResponseMessage);
    
    out.close();in.close();https.close();
    

    Any help is very appreciated!

    Thanks in advance.

    PS:

    Simulator: 8300

    MDS: 4.1.4

    JDE: 4.5.0

    Eclipse: Version: 3.4.1
    Build id: M20080911-1700

    Dear community,

    I managed to solve the problem by myself. Its a classic copy & paste error.

    Lets take a look at:

    https.setRequestProperty(HEADER_CONTENTTYPE, CONTENTTYPE_FORMDATA);
    
    https.setRequestProperty(HEADER_CONTENTTYPE, String.valueOf(length));
    

    As you can see I used two times HEADER_CONTENTTYPE. Its not so bad, but to indicate the length of a post, you need to use HEADER_CONTENTLENGTH:-D.

    I have to take a break...

    You can consider the issue as resolved.

  • I have a problem with the cursor jumps when entering text.

    Original title: cursor jumping when entering text

    I use Microsoft 7 and the cursor keeps jumping when I type. This causes the text to be misplaced. Some answers I've seen only direct you to the hardware options but never directly any specific solution. Grateful for ideas?

    Hey Joe,

    Thanks to join Microsoft Community where you will find all the required information on the Windows operating systems!

    The problem may occur due to the speed of the pointer mouse inappropriate or if the sensitivity of the touchpad is too high.

    To help you better, we need more information.

    What is brand and model computer?

    To work with the issue, I suggest you follow these steps:

    Method 1: Hardware store

     

    Open the hardware and devices Troubleshooter

    http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter

    Method 2: Update mouse drivers

     

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

     

    Method 3:

     

    Change the settings of the mouse pointer.

     

     

    Refer to section to change the mouse pointer works on the site:

    Change the settings of the mouse

    http://Windows.Microsoft.com/en-in/Windows7/change-mouse-settings

    Method 4:

    If you use a laptop, change the sensitivity of the touchpad.

    See solving problems with your touchpad in more options in the site:

     

    Mouse, touchpad and keyboard with Windows problems

    http://Windows.Microsoft.com/en-in/Windows/help/Mouse-touchpad-and-keyboard-problems-in-Windows

     

    I hope this helps. If the problem persists, or if you have problems of Windows in the future, let us know and we would be happy to help you.

  • Problems with the graphics card when you use AutoCad

    Hi, I have a dell xps 18.4 - i7 with 8 GB of RAM, when I'm working with Auto CAD I face problem with my graphic card, what can I do to fix this? has any experience with that? the graphics card is Intel(r) HD Graphics 4000

    Hello

    Thanks for the reply.

    I'm sorry for the late reply.

    I appreciate your patience.

    I suggest you to try installing the driver in compatibility mode and tick.
    Reference:
    Make the programs more compatible with this version of Windows
    http://Windows.Microsoft.com/en-us/Windows-8/older-programs-compatible-version-Windows

    Please keep us informed.

    Thank you

  • Problem with the missing colors when printing

    It was sugested by HP that I try this forum for help.

    The following is a copy of the email that I sent them that describes my problem, I hopesomeone can help! Thank you.

    language_code: en
    language: English
    Country of residence: France
    Product_Line: 83
    product_oid: 59868
    product_name: HP Deskjet 840C Printer
    PART_NUMBER: C6414K, C6414J, C6414A, C6414G, C6414N, C6414H
    purchase of month: 8
    purchase year: 1996
    problem area: the color and print quality problems
    Serial number: [text removed for privacy]
    operating system: Microsoft Windows Vista Home Premium 32
    How your product is connected to your PC? : USB cable
    description of the problem: when I try to print a page containing the coloured elements, the elements of color can not print. (The items are completely absent, they are not replaced by gray-scale images) I did all the usual things, according to the list: -.

    Troubleshooting: 1) restarted my computer.
    (2) disconnected the USB cable and reconnected.
    (3) changed the color cartridge.
    (4) examine the printer settings in the Control Panel, the color is selected and all other settings seem normal.
    (5) cleared the printer as your 'default' and re-installed.
    (6) run software that checks the driver is up to date and it is.
    (7) printed the built in 'beautiful color made easy' test page only the header and footer to print, no color!
    Exchange: no, nothing has been changed.

    PS. I have owned my printer for many years and don't remember the date of purchase.
    technical skills: intermediate
    First name: Grant
    First name: W [text removed for privacy]

    Apart from the mentioned measures check the dates of warranty on the cartridges as shown here.  If they are years of the warranty period, is it possible the cartridges have failed, even though they were new in the box.  Also gently pat dry the printhead on a damp cloth to ensure that there are stripes of color cyan, magenta and yellow.  If there is not a task of strong color on the fabric the cartridges are probably the cause.

    The only black test page confirms that the issue is in the printer or cartridges, not with the computer or the drivers.

  • Problems with the picture quality when viewing under 100%. First post on the forum.

    Hello everyone. I'm sorry, we have the GET acquainted with this way, but I'm having some problems and this is one of my recent options to get the help.   Let me explain the problem.    Consultation of a file of less than 100% zoom, everything seems jagged as anti aliasing is missing.  Once I'm at 100% zoom, everything seems as it should. The saved file (for example jpeg format) is correct. I can zoom out and seems to be always faithful to the image. The problem is related to photoshop. I installed my latest GPU drivers twice just to be sure, and it was not that.   This problem started last night and I'm not sure how to solve.  If I work on images low resolution, it is not a problem as bad because I will be working on 100% zoom, but I work on images high resolution / paintings. Somewhere around 8000 x 5000 pixels so, work 100% is not that feasible. I have attached an image that illustrates this problem. The right one is zoomed in by the version and the left is the zoom in version.  Yes, the noise is touched by it, evil, but this started last night. until then, everything seemed fine even with the noise or the sharpness of the world output. I can't imagine what I could have done to trigger it.

    test.jpgThat said, I'm at the mercy of more sophisticated here people. I hope I have posted this question in the right section. It's my first post here so I'm sorry if I missed something.   Looking forward to your answers.

    This is a simplistic view, I feel may help you to understand the reality.

    The only time that you look at your image pixels in Photoshop is when you have zoomed in to 100%, it has your look at the pixels of the image in Photoshop for your image at the resolution of your display.

    At any zoom level, looking for an image on a scale that has more or less of pixels that your real picture that too, these are displayed in your display resolution.

    Scaling done by Photoshop is made to display your image is made for good performance, not the best image quality fast interpolation.   That's why at certain levels of zoom image quality seems poorer than at other levels of zoom.

    High resolution screen now have add a new problem.   User interfaces have been designed for screens with resolutions around 100 PPI elements like text, icon and other things like checkboxes, buttons etc. were created size so it would be usable it are more or less fixed 100 dpi.   While Photoshop is designed to scale to your images in order to work well on it is has not been designed with a scalable user interface.  Photoshop can't change its UI regardless of its display high resolution will display image for you.  Display Image in Photoshop has the same resolution as the rest of the User Interface of Photoshop.  Just as there is only one resolution in all layers in a document. CC 2014 2xUI changes.  PS IU is proportional to the image of the area is to the actual resolution of the poster of resolution 1/2.

    Photoshop CC 2014 2 x UI balance all Photoshop User Interface, including the image shown at 200% which is 1/2 the resolution of your screen you cut effectively display pixel count to 1/4 of the number of actual pixels.   Your new running on a low resolution screen.     If your screen has a native resolution 200 PPI you run it at 100 ppi if your display has a 300 PPI resolution you run at 150ppi.    Which goes against the reason for high resolution.  Who would you be able to edit your images to a print resolution.  Adobe cc2x UI will scale the user interface, but not the window image soa inage is 216ppi on the Surface Pro 3 user interface is great and dpoes do not match. screen

    To be able to edit your images to a print resolution you need to display the a a print resolution and you need and demand her can scale its image and its independent user interface display.

    Currently there is no OS interface to have several areas of resolutions on a screen and applications such as Photoshop does not scale UI and Image independently.  OS and Photoshop fits what is displayed.  Executable of Adobe Photoshop is coded in a way that it say Microsoft Windows OS it will load display scaling so that he can use the native resolution of your poster.  Currently only Photoshop CC 2014 offer you with the possibility to run you view at half the resolution.

    Windows fits view you lots of resolution and as several presets.  as 100%, 125%, 150% and 200% half of resolution Adobe.    You can make a Windows registry and add an external manifest Photoshop file of the Microsoft Windows tell to handle display scale.  I have a machine to windows Microsoft Surface Pro 3 Mr. its LCD screen has a resolution of 216PPI.  Windows 8.1 had 4 preset for the scale of its LCD screen.

    Surface Pro 3 screen LCD IPS 12 "display the 9.984603532054124 3:2 aspect ratio" Wide, 6.656402354702749 "high 216.3330765278394 PPI

    Scaling of display predefined Microsoft

    100% 216 2160 x 1440 DPI

    125% 173 1728 x 1152 PPI

    150% 1440 x 960 144 PPI SP3 to the position

    200% 1080 x 720 PPI, 108

    User most these days above 1024 x 768 or better poster and Web pages are often created for pages in 800 x 600 pixels. In order to give a better grip on the resolution and scaling that I change a 800 x 600 document with px grid 25 x 25 on my Surface pro 3

    scale 4 Windows presets and captured using the 2160 x 1140 to bracts screens only to the 100% preset the image window has a 216ppi also note x 2 @ Photoshop UI UI doe does not not on-screen

    Adobe Photoshop CC 2014 2xUI scales the user interface for a display resolution 1/2 but is not suited to the actual screen resolution Image area uses. Information system support Photoshop displays the screen i 1/2 resilution 1080 x 720 but scalet imase to the actual resolution 2160 x 1440. However, the image window is the 216ppi the 108ppi of the UI via the scaling

  • Problems with the missing letters when the combination of Microsoft Word documents

    Hello

    I had a problem which I hope someone can help me with.

    When I combine several documents (9 total, .doc and .pdf files), some words have letters missing - leaving large voids in the words. It seems that, it seems to happen to positions with the font style "Arial (topics)."

    After some research, I realized that others have seen a similar problem and it could be solved in the Adobe PDF printer properties (properties > Preferences > defaults :).) However, after testing a few different settings, nothing seems to be fixing the issue and I will always have the same missing letters in the final document to convert.

    I use Adobe Pro XI - I was wondering if there is a update/fixes for this? I'm on version 11.0.07. For some reason, I am unable to update so I can't verify this.

    Can someone offer any assistance with this?

    Thank you

    This occurs due to the creation of subsets of fonts. Not all letters are available because they may be in subsets of different fonts. Delete the fonts embedded in the pdf file, then re - incorporate fonts.

  • Problem with the back up when import

    If I understand correctly, when I choose to send a second backup copy during the stage imort LR3 sends a copy of the parameters and not a copy of the image itself, a separate backup should be so the image. I understand that correctly? This system applies to all files or just for the Raw files?

    The reason for these questions is because when I imported an image images recently the image backup file content and not the text. This problem occurred when I was attmepting to merge all my pictures and images in a single catalog. There may be files were worked on in LR2, some on LR3, some may have been worked in LR2 and then set up-to-date for LR3, I can't remember which.

    One of the factors that can affect the problem is that I chose the preference to incorporate the settings jpeg and Tiff files. Would be - it then cause jpeg files to save as image rather than in text format?   If so that would mean that he only then would be required to make a separate backup of jpeg files?

    Please help as I have to many problems of compiling a master catalog!

    Lol you do not understand.

    The second copy made when importing is a second copy of the image file, whether raw or jpeg. This second image is probably best thought of as a temporary backup until your imported photos make your regular backup rotation. This is consistent with the practice of always have at least two copies of your images, and it allows you to reformat your card.

    To save your changes, it is necessary to back up your catalog. The option of Lightroom to save it by leaving allows the backup take place once the catalog was closed in a known good state.

    There are a lot of good tutorial material available on the web. It is a good starting point.

    HAL

  • Problem with the XML encoding when displayed

    I had decided to use XML file instead of a database because the customer did not have a database is the web hosting package. But I have a weird problem where the information is not well displayed but they are well received! The french characters using client that the site is in french and English and special characters outside the first 128 characters of ASCII is not displayed correctly. I don't know exactly what to do at this level where the XML file is perfect (and I can see the special characters correctly). I tried to use the CFPROCESSINGDIRECTIVE but it did nothing for the correct display.

    If anyone has an idea while I'm looking always thought that the web something to solve this problem, please let me know.

    Here's an example of what I'm talking about:

    "Sled" is displayed "Traa® neau.

    I found out why! The original XML file has been modified manually and it screw the file for some reason any. When you use the process of creating the XML file and to use it after as it was created, all special characters are displayed correctly.

    In conclusion, never manually edit your XML file! ;-))

  • Problems with the VCA mode when moving to Vcentre 4.1

    Hi all

    I currently have three ESXi 4.0 update 3 host running in a cluster. Two servers are identical and the third a later generation of CPU. The cluster is running in mode VCA Intel i7 with success.

    Also, my server Vcentre is 4.0 update 3 running on a 32-bit Windows Server 2003 R2.

    I built a new server on Windows Server 2008 R2 Vcentre and I am running Vcentre 4.1 update 1.

    I did the exercise to my old server Vcentre guests to my new. No problem until I try and their cluster. My server with the latest CPU is not allowed admission to the cluster. The new cluster is running same EVC mode as the old cluster.

    Need to update 4.1 Vcentre 1 be backward compatible for EVC modes with respect to the material?

    The servers are all DELL R710, the old two servers running XEON X 5570 processors and the latest Intel XEON X 5670 processors host tracks

    Do I have to update all 3 hosts 4.1 before I can redefine the clusters in EVC mode?

    Hoping that someone has been through a similar experience and can advise you. Unfortunately, I do not have a test lab to run it on.

    See you soon. Mark

    I don' t think you need to upgrade to ESX host.

    I think try in the following order:

    (1) turn on VCA for cluster

    (2) add the latest processor, select baseline and then old processor server.

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=1003212

    -A

  • is anyone having problems with the debenhams site when accessed from an iPad?

    I can't select sizes, etc. When I go to debenhams site from my iPad 2. In addition, items disappear from my basket once they have been added & new items disappear from the "saved" so box. I was wondering if anyone else may be faced with a similar problem. Any suggestions to solve this would be great, thank you all!

    A couple of things you can try:

    Clear the cache for Safari (Settings - Safari - clear story and Web site data)

    Install app Debenhams

Maybe you are looking for

  • Satellite Pro 6100 how to use recovery DVD-ROM with vmware products

    Hello I like to use the recovery DVDs of product (T201651-GR) of my Satelite Pro 6100 on VmWare player, because I use openSUSE Linux as main operating system (not Windows installed on the hard disk).I do like install and save hard disk laptop, so tha

  • 4015 creasing on the long side

    I have a 4015 that puts a small crease on the long side of the paper. It's more noticeable down to 1/3 of the leaf. Recently, I replaced the fuser unit.

  • code for a battery 9 cells

    Hi all! Sorry for my English.I am looking for the product code for a battery 9 cells for Lenovo T420 4236-W8Y. Can someone help me?Thank you

  • How to replace a single key

    I have an Acer Aspire S7 and I would like to replace a single key on the keyboard, which means that the rubber gromet and maybe the part plastic which contains the physical key down too. I would like to know the process behind this for the obvious re

  • Why my PC cannot use all of the available memory?

    Hello I have windows ultimate 64 bit and the 6 GB of ram (laptop) http://img03.arabsh.com/uploads/image/2012/09/19/0d36454a60fa0d.PNG As shown in the photo, there is a free memory and available memory Total: 6058caching: 2713available: 2552free: 1 Wh