The LV crashed when I call a dll to control my com port

I am controlling the com port with calling a dll(dwdio.dll--see the attachment). The VI I used is also attached below.
I just used four functions of this dwdio.dll, as followings:
1. bool DWD_set_comport(unsigned char com_port,int *handle)
Parameter config:return type--unsigned 8-bit int(value),com_port --unsigned 8-bit int(value),handle--signed 32-bit int(point to value)
bool DWD_set_baud_rate(int baud,int *handle)
Parameter config:return type--unsigned 8-bit int(value),baud--signed 32-bit int(value),handle--signed 32-bit int(value)
bool DWD_check_comm_link(int *handle)
Parameter config:return type--unsigned 8-bit int(value),handle--signed 32-bit int(value)
bool DWD_close_com_port(int *handle)
Parameter config:return type--unsigned 8-bit int(value),handle--signed 32-bit int(value)
I can run my vi successfully,but Labview will crashed when I close Labview application. I tried many ways to change the parameters and convention, but there is no effect.
Because this dll file need hardware dongle,so I can't upload the vi. I just attached the screen-shot of it.
Can anybody have some analysis on my vi to give me some valuable suggestion?
Attachments:
dwdio & explanation &my vi.zip ‏2456 KB

Yaoming wrote:
> SVences,<br><br>I know that Erroneous data types assignments can cause crashes.
> I have checked all the data type with my experience and knowledge,but I didn't
> find anything should cause this crash problem.<br><br>After all,I am not very
> experienced in Call Library Function, so maybe my vi still have some erroneous
> data type assignments. Can any DLL expert help me to locate them?
> For the original function description, I have posted as attachment in the first
> post. Therefore,anybody who want to check my data type error can have a check
> with that function description.
> That issue is very urgent and important to me. Can anybody to help me sort
> this problem as soon as possible? Thanks in advance.
A few remarks:
1) the Bool return value is probably an int. It doesn't look like a
standard Widnows datatype so you will have to look in the documentation.
However this is unlikely to crash your code.
2) The handle parameter for DWD_set_comport should be set as Pass:
Pointer to Value. All other parameters should be passed by Value only as
they are not pointers at all. Also please wire a 0 constant to the right
side of the CLN for that parameter to provide memory for the DLL to
write in.
3) The calling convention for the DLL functions is not obvious from your
documentation. You have the choice between C (cdecl) and WINAPI
(stdcall) on Windows. Since this DLL seems to be available for multiple
platforms (The remark for each function) it may be that the developer
decided to use cdecl calling convention (a smart choice I would say) but
Windows DLLs usually use stdcall instead.
Having the wrong one will absolutely crash LabVIEW but usually at the
moment you return from the functioncall and not later on.
So I would guess the most probable cause is number 2, but don't discount
the other ones completely.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • I cannot log onto the App Store, the page appears when I call it from the dock or the Apple menu. I can call the log-in box from the menu bar, but on signing in the spinning icon just keeps spinning,(not the beachball). Any suggestions? Using 10.6.7 and u

    I cannot log onto the App Store, the page appears when I call it from the dock or the Apple menu and I can call the log-in box from the menu bar, but on signing in the spinning icon just keeps spinning,(not the beachball).  Using 10.6.7 and up-to-date on all software. Any suggestions?

    Could be a third party app preventing you from being able to login.
    Mac App Store: Sign in sheet does not appear, or does not accept typed text
    If it's not a third party issue, follow the instructions here.
    Quit the MAS if it's open.
    Open a Finder window. Select your Home folder in the Sidebar on the left then open the Library folder then the Caches folder.
    Move the com.apple.appstore and the com.apple.storeagent files from the Caches folder to the Trash
    From the same Library folder open the Preferences folder.
    Move these files Preferences folder to the Trash: com.apple.appstore.plist and com.apple.storeagent.plist
    Same Library folder open the Cookies folder. Move the com.apple.appstore.plist file from the Cookies folder to the Trash.
    Relaunch the MAS.

  • TS3367 I have two IPhones and one IPad all with the same Apple ID. I can call facetime between the two IPhones, but I cannot call the IPAD from either of the IPhones and when I call my IPhone from the IPad it rings my wife's IPhone after briefly calling m

    I have two IPhones and one IPad all with the same Apple ID. I can call facetime between the two IPhones, but I cannot call the IPAD from either of the IPhones and when I call my IPhone from the IPad it rings my wife's IPhone after briefly calling mine.

    Each device needs a separate address. Use an email address (gmail.com) on the iPad.
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
     Cheers, Tom

  • I have a problem in iphone4,i am from india and bought a new unlocked iphone4 from USA last month.the problem is when i call someone their is disturbance in the voice and i cant hear the opposite person voice.please inform me how should i overcome this?

    I have a problem in iphone4,i am from india and bought a new unlocked iphone4 from USA last month.the problem is when i call someone their is disturbance in the voice and i cant hear the opposite person voice.please inform me how should i overcome this?

    There may be a defect in the phone. As you bought it in the US the only place you can get it looked at is in the US.
    When you say you bought it new, unlocked did you buy it directly from an Apple store? If you did not it was hacked to unlock it, which could also be your problem. Apple stores are the only place in the US that sells legitimately unlocked iPhones.

  • Why can't I hear the phone ring when I call somebody, but if I put the speaker on it works

    Why can't I hear the phone ring when I call somebody, but if I put the speaker on I can hear the ringing?

    Don't jump all the way to restoring just yet.  Check to make sure there's nothing in the headphone jack, and nothing covering the microphones (including the noise cancelling microphone at the top next to the headset jack)
    1. Restart the device. http://support.apple.com/kb/ht1430
    2. Reset the device. (Same article as above.)
    3. Restore from backup. http://support.apple.com/kb/ht1766 (If you don't have a backup, make one now, then skip to the next step.)
    4. Restore as new device. http://support.apple.com/kb/HT4137  For this step, do not re-download ANYTHING, and do not sign into your Apple ID.
    Test the issue after each step.  If the last one does not resolve the issue, it is likely a hardware problem.

  • I have been using Lightroom 4.4 successfully for over 2 years.  Just tried to import some new photos after a vacation and the application crashes when I click "import" every time.  Tried restarting computer.  Version says it is up to date.

    I have been using Lightroom 4.4 successfully for over 2 years.  Just tried to import some new photos after a vacation and the application crashes when I click "import" every time.  Tried restarting computer.  Version says it is up to date.
    How do I get formal support for this from Adobe?

    Thanks for the response.  The application was crashing.  A Windows message was displayed showing "Lightroom.exe has stopped working", "Windows can check online for a solution the problem.". Etc.
    I just launched Lightroom to check the exact message for this reply - and the Import worked.  It had failed dozens of times before. 

  • How to turn on the light for when a call comes in ?

    how to turn on the light for when a call comes in?

    Settings>General>Accessibility>Hearing>LED Flash for Alerts>Off.

  • How can i hide phone apps so that if kids take my mobile the couldnt be able to make calls. At the same time when someone call me I could be able to attend call. is there any control to lock phone's apps or hide it.

    how can i hide phone apps so that if kids take my mobile the couldnt be able to make calls. At the same time when someone call me I could be able to attend call. is there any control to lock phone's apps or hide it.

    Hi there
    Apple doesnt give this feauture and there are certain apps in app store under utilities which provide password facility under this app and u can store photos videos and orther stuff and lock so
    Kids will be not able to access this single app ortherwise there is no such feature of locking apps feature given by apple
    <Edited By Host>

  • Skype crashing when receiving calls or making calls (update 7.2)

    Never had this issue but Skype crashes when I attempt to call somebody or recieve a call. When I accept a call it works for around 30 seconds before cutting out and similar for making a call. My friend had a similar issue with his skype freezing his computer when calling somebody, turns out it was a power issue with his gpu and motherboard, Problem with mine is that it's a laptop and I don't have access to the gpu to tamper with. Faulting application name: Skype.exe, version: 7.2.0.103, time stamp: 0x54ef0c1d
    Faulting module name: AMDh264Enc32.dll_unloaded, version: 1.0.0.1, time stamp: 0x502c5232
    Exception code: 0xc000041d
    Fault offset: 0x00006920
    Faulting process id: 0x3cdc
    Faulting application start time: 0x01d069c02bf3b52c
    Faulting application path: C:\Program Files (x86)\Skype\Phone\Skype.exe
    Faulting module path: AMDh264Enc32.dll
    Report Id: c59b191f-d5bb-11e4-bee9-2c27d7ad024a
    Faulting package full name:
    Faulting package-relative application ID: Looking at this I can see that AMD might be causing an issue, I'd rather not upgrade the drivers or downgrade them as I've had extreme issues in the past when doing this. Thanks.  

    helenleon wrote:
    oh my. i have the same issue. i have Windows 8.1. and my Call always drops between 30sec to 1min. i have no computer skills. really need help on this. im scared to ruin my Laptop.Please,  run the DirectX diagnostics tool. Go to Windows Start and in the Run box type dxdiag.exe and press the OK button. This will start the DirectX diagnostics program. Run this diagnostics and save the results to a file. Please, attach this file to your post. Be aware that you will have to zip this file before attaching it here.

  • Skype crashing when receiving calls or making call...

    Never had this issue but Skype crashes when I attempt to call somebody or recieve a call. When I accept a call it works for around 30 seconds before cutting out and similar for making a call.
    My friend had a similar issue with his skype freezing his computer when calling somebody, turns out it was a power issue with his gpu and motherboard, Problem with mine is that it's a laptop and I don't have access to the gpu to tamper with.
    Faulting application name: Skype.exe, version: 7.2.0.103, time stamp: 0x54ef0c1d
    Faulting module name: AMDh264Enc32.dll_unloaded, version: 1.0.0.1, time stamp: 0x502c5232
    Exception code: 0xc000041d
    Fault offset: 0x00006920
    Faulting process id: 0x3cdc
    Faulting application start time: 0x01d069c02bf3b52c
    Faulting application path: C:\Program Files (x86)\Skype\Phone\Skype.exe
    Faulting module path: AMDh264Enc32.dll
    Report Id: c59b191f-d5bb-11e4-bee9-2c27d7ad024a
    Faulting package full name:
    Faulting package-relative application ID:
    Looking at this I can see that AMD might be causing an issue, I'd rather not upgrade the drivers or downgrade them as I've had extreme issues in the past when doing this.
    Thanks.
    Solved!
    Go to Solution.
    Attachments:
    DxDiag.zip ‏18 KB

    helenleon wrote:
    oh my. i have the same issue. i have Windows 8.1. and my Call always drops between 30sec to 1min. i have no computer skills. really need help on this. im scared to ruin my Laptop.
    Please,  run the DirectX diagnostics tool.
    Go to Windows Start and in the Run box type dxdiag.exe and press the OK button. This will start the DirectX diagnostics program. Run this diagnostics and save the results to a file. Please, attach this file to your post.
    Be aware that you will have to zip this file before attaching it here.

  • Trouble when Labview call CVI DLL in after compiled to EXE

    Hi,
    I m developing a program by LabVIEW, and have to call a DLL, which developed by using CVI. 
    The UI of the DLL consist of a table and a listbox. 
    The DLL run smoothly but when I compiled the project to EXE, when the program call the DLL, the DLL won't show properly.
    The DLL UI only show the table, and the listbox has "disappeared".
    Any common known-problem caused it ? Please advise. Thanks a lot. 

    Hi Engwei,
    I'm not familiar with any such issue. Would it be possible for you to post the corresponding CVI and LabVIEW codes and the built DLL and executable? I would like to investigate this issue further. Also, what version of CVI and LabVIEW are you using?
    Thanks!
    Joshua de la Llana
    NI Applications Engineer

  • When will Apple resolve the FCPX Crashes when Effects are added to a clip in timeline.

    I have tried every route to get answers from Apple regarding system crashes when applying an Effect to a clip in the timeline. I am now getting more aware from posts in all sorts of Forum / Communities that this is causing VERY MANY users a problem.
    It would only take 30 seconds for Apple to post a statement to let their users know what they intend or are doing to resolve together with an estimated fix time.
    Come on Apple please SAY something at least.
    F. Jackson

    Here we go - I have another thread that I started the other day, but thought I'd continue this here. I just did an extensive test. Fred, you may be on to something here. I'm beginning to think some of this is only happening if you are:
    (a) running the Trial version
    (b) Motion is NOT installed
    (c) and it may be that the 10.0.1 update has created this problem, although surely Tom and Andy are running that update...
    ...or some combination of the above. Anyway...
    New iMac i5 quad-core 12mb RAM - new machine with total stock config - only Apple software except for Office 2011.
    FCP X Trial version, Motion is not installed
    I've tried a variety of clips, but to eliminate variables, for this test I just used clips from a Canon 60D. They were imported from the card and converted to ProRes by FCP X.
    Again, these crashes only relate to using the Inspector with certain Effects. If the Inspector is closed, I can apply these Effects and they play back flawlessly. However, once I've applied them and selected the clip, clicking the Inspector button causes an immediate Quit of FCP. And, if the Inspector is already open, just applying the Effect to any clip causes an immediate Quit.
    These are the Effects that cause the crash (for me) by category:
    Blur - Radial, Zoom
    Distortion - Earthquake, Fisheye, Fun House, Glass Block, Mirror, Scrape, Water Pane
    Keying - Image Mask
    Lighting - Highlights, Side Lights, Spot
    Looks - amazingly enough, all work except for Glory
    Stylize - Censor, Halftone, Line Screen, Photo Recall, Pixellate, Vignette
    Tiling - Kaleidoscope, Kaleidotile, Perspective Tile (but strangely just plain "Tile" DOES work)
    So, this is approximately half of the supplied Effects. Interestingly, there is not a single category in which ALL of them work, nor one in which NONE of them work. And, by the way, doing this gave me a chance to check out every Effect - wow are there some cool ones I can't wait to work with. And, I got into this routine of highlight clip, make sure Inspector was open, double-click Effect, if no crash just CMD-z and repeat. I threw a lot of changes at it in quick succession and it handled it beautifully, except for the list above.
    There is also a third party free effect from Alex4D called Smooth Move. It looks fantastic! It allows Ken Burns-like scaling which somewhat alleviates the weird animation that results if you scale and move at the same time with keyframes, BUT it allows the flexibility to NOT have the move span the entire clip like Ken Burns does. Oops, sorry, that Effect ALSO crashes the Inspector, so I can't access the controls. And, to keep this test pristine, I didn't try the Alex4D Effect on this test iMac, just on my Mac Pro on a clean system install.
    Now, if Apple said (or says later) oh, wait, in the Trial version some of the Effects are not adjustable, but they are flawless in the paid version, I'd be fine with that. And, if you guys with the paid version and/or Motion installed say it works fine for you, I believe you :-). It's just that several of us were excited to get the Trial. I've been using FCP since 2003 and LOVE this new version. But, until you figure out that you can't use the Inspector with half of the Effects if you are using the Trial version, it just seems like the thing is unusable and crashes constantly - because it does.
    Now that I know this, I don't think I've had a SINGLE crash otherwise - even on my "wrong" install on my MacPro with FCP7 and FCPX both on the boot drive.
    David

  • Skype crashes when I call someone.

    When ever I try to call someone on skype it crashes (windows 7) (64Bit) I also have run the DirectX diagnostics tool I have Put the text right below this
    Solved!
    Go to Solution.
    Attachments:
    Tool.zip ‏7 KB

    DakotaHorton wrote:
    There is no error messages that corresponds to the Skype crash
    Are you sure? There should be.
    Your GeForce drivers are out of date:
    http://www.geforce.co.uk/drivers/results/82606
    Is your Samson Meteor Mic actually a headset or is it appearing as a set of speakers as well when it shouldn't? You ought to delete it if it's a mic and it's installed itself as a speaker as well. Just try removing it and relaunching Skype - I don't like what it's doing and it might be screwing around with the system.
    Try resetting Skype settings:
    1) Exit Skype or use Windows Task Manager to terminate Skype.exe.
    2) Open explorer, search for %appdata%. 3) Find the Skype Folder.
    4) Rename this folder to something like Skype_Old
    5) Now search for %temp%\skype.
    6) Delete the folder entitled 'DbTemp'
    7) Restart your computer, then launch Skype
    You can still get back your conversation history. This data is located in the folder you renamed earlier.
    Anthony
    This post was by Anthony- I do not work for Microsoft!
    If this solved your issue - Mark it as a solution! If you like my post - Please add Kudos!
    Spotify Community Profile - Anthony
    Feel free to PM me - Here

  • Skype crashing when I call somebody freezing my wh...

    It's crashing when I skype call, I'll copy paste some of the information here. It works on older versions but when I update past 6.3 It doesn't let me go through.
    Time of this report: 10/7/2014, 21:20:01
    Machine name: NATHAN-PC
    Operating System: Windows 7 Home Premium 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.140303-2144)
    Language: English (Regional Setting: English)
    System Manufacturer: ASUS
    System Model: All Series
    BIOS: BIOS Date: 04/10/13 12:19:42 Ver: 04.01
    Processor: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (8 CPUs), ~3.4GHz
    Memory: 12288MB RAM
    Available OS Memory: 12228MB RAM
    Page File: 2864MB used, 21589MB available
    Windows Dir: C:\Windows
    DirectX Version: DirectX 11
    DX Setup Parameters: Not found
    User DPI Setting: Using System DPI
    System DPI Setting: 96 DPI (100 percent)
    DWM DPI Scaling: Disabled
    DxDiag Version: 6.01.7601.17514 32bit Unicode
    Solved!
    Go to Solution.

    Please,  run the DirectX diagnostics tool (32-bit version).
    Go to Windows Start and in the Run box type dxdiag.exe and press the OK button. This will start the DirectX diagnostics program. Run this diagnostics and save the results to a file. Please, attach this file to your post.
    Be aware that you will have to zip this file before attaching it here.

  • Ok, one sentence, that's tough - I have gone through the 'firefox crashes when you open it' troubleshooting but my problem remains that firefox crashes when i open it, how do i fix this?

    Several days ago firefox crashed when opening and it does so every time i try to open it now. I am able to use internet explorer perfectly. In fact one way i discovered i can still open firefox is by using Advanced System Care (which i installed after the crashing so it was not in any way responsible) and going to 'test bandswidth'. Because firefox is my default browser it opened it up. I was able to enter safe mode in this way and restart firefox in safe mode. I then set firefox so that all plugins and extensions were disabled but this did not help. I am running the default theme. I will be happy to provide any further information if anyone can help..thanks in advance.

    See:
    *http://www.mozilla.org/en-US/firefox/channel/
    *http://nightly.mozilla.org/
    Note that the Aurora (28.0a2) and Nightly (29.0a1) build are updated daily and can be unstable being alpha releases.<br />
    You always need to install such a version alongside of the current release via a custom install and use a separate profile for each Firefox version.
    Make sure not to start Firefox after the installation has finished and use the Profile Manager to create a new (separate) profile for each version.<br />
    Do a custom install in a different program folder and use the Profile Manager to create a new profile for this version, so make sure not to start Firefox after the installation has finished.
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Profile_Manager#Creating_a_new_profile
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile

Maybe you are looking for

  • 'when I try to use any of the tools on a photo, such as cut out a section, the tools will not execute.

    What has changed my P'E?  I have used it for many years and now, all of a sudden, it will not respond and the tools while they show on the photo will to execute.

  • Which is Better in Performancewise?

    Hi Guys,            In context of ABAP HR,  Which Technique is better for selecting Data (Performance wise)? 1) Use of Provide / EndProvide OR 2) Use of Macro like rp_provide_from_last Kindly reply with suitable reason. Thanks, Ravin

  • Regex Error

    Hi. The code below compiles but does not work for some reason. it should be picking up the words: "Tom" and "London"; Can any1 help me. Many many thanks in advance. String s = "Tom went to London"; Pattern p = Pattern.compile("[\\s]");           Stri

  • Can't Video/Audio Chat

    Hey I can't chat with anyone not even Mac people. I don't know what the problem is, it's says something about my band connection but I don't know what it could be. Date/Time: 2009-05-07 22:29:03.470 -0400 OS Version: 10.4.11 (Build 8S2167) Report Ver

  • Sending an email to all email addresses for a contact in a Group

    I recently compiled a Group of contacts so that I could send out a Christmas email. These days most people have more than one email address. From what I understand, Mail will send it to the first email listed on their Address Book card. What if I wan