Why do I get an invalid handle error when debugging, on a call to ncReset?
I am working with the example program obj2obj.c
I have a PCI-CAN/2 card installed.
I must call ncReset for *both* ports (CAN0 and CAN1), prior to any other commands or I will get a driver error (NC_ERR_DRIVER, Bxxx0002).
This happens even if the program terminates properly, closing all handles, and I then remove the ncReset commands.
Fine, I can live with the ncResets.
However, if I then try and debug the program using Microsoft Visual C++, it immediately chokes on the second call to ncReset( "CAN1", 0 ) and complains about an invalid handle.
If I add a status check to both of the ncResets and run the program from the DOS command line, I don't get any errors printed out
so the calls are working fine just running the program.
The driver updates listed do not appear to address this problem (1.4.1 uses LabView which I do not have and 1.4.2 is for Windows 2000)
Why are the ncResets required in the first place?
And why can't I single step through the second call to ncReset?
Thanks in advance for your help.
System details:
PC running Windows NT 4.00.1381
PCI-CAN/2 w/driver 1.4
Microsoft Visual C++ 6.0 Professional
bsat, thank you for helping out!
I had tried using only one ncReset previously and was experiencing driver errors. I removed the second ncReset as you suggested and now it seems to work with only one. I cannot get it to fail like it was doing.
However, at least one ncReset must be used or I get the following error:
ERROR ncConfig CAN1: Driver error (qual=000b000)
Press any key to continue
I get this error even when the program terminates normally. For example:
1) Build obj2obj with the ncReset command.
2) Execute and allow to terminate normally.
3) Edit obj2obj and remove ncReset command.
4) Execute and the error message is displayed.
Amazingly, I was also able to single step through most of the program this morning. I got the first three messages (of 10 total) before ge
tting the error:
Microsoft Visual C++
First-chance exception in cctool.exe (NTDLL.DLL): 0xC0000008: Invalid Handle
It seems to be more random than first appeared and perhaps more related to MSVC than to the NI-CAN card. Any insight?
Also, having to include an ncReset is undesireable since I'd like to develop a CAN driver that could be called from multiple threads. I'd be very interested in your opinion on why I'm having trouble getting it to work without one.
Thanks again for your help, it is greatly appreciated!
Similar Messages
-
Why am I getting an invalid signature error when I try updating my iphone 4?
.
yes, through Itunes. the os hasn't been updated in awhile, if ever. the phone is still running on 4.2.10 I can't update the new itunes, quick time, safari.
-
Why do i get the invalid signature error
Why do I get the invalid signature error when trying to download the latest updates fot itunes
Hi, im getting the same thing,
Been tryin to download it for days but keeps saying "Invalid signature"
I even went into ADD REMOVE PROGRAMS hit Apple software update and change and then repair but this did not work.
Help much appreciated. Thanks -
Why am I getting an app store error when trying to download Lion?
Why am I getting an app store error when trying to download Lion? Any ideas?
I would complain really bad and get them to give you a Flash card that they just came out with because they've inconvenienced you so much and you don't have hours to spend at the apple store waiting for the whole thing to load.
The only thing about the flash cards is that it will change your whole motherboard so it won't allow you to install snow leopard or anything less, ever again. (as what the apple specialist told me over the phone).
I would also suggest waiting. It really isn't worth the hastle and you may not benefit from installing it on your old computer... just a thought. -
Why do I get an "invalid signature" message when trying to download the latest version of iTunes? Apple Support is the lamest excuse for support I have EVER seen.
That suggests that the installer is getting damaged during the download.
I'd first try downloading an installer from the Apple website using a different web browser:
http://www.apple.com/itunes/download/
If you use Firefox instead of IE for the download (or vice versa), do you get a working installer? -
Why am I getting an ORA-04052 error when I try to compile a Procedure?
Hi,
The following procedure I'm getting an ORA-04052 error when I try to compile the following procedure.
CREATE OR REPLACE PROCEDURE APPS.Find_String (
pin_referenced_name IN dba_dependencies.referenced_name%TYPE)
IS
cursor cur_get_dependancy
is
SELECT distinct owner, name, type
FROM [email protected] -- prod.world
WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d'
AND referenced_type <> 'SYNONYM'
AND owner <> 'SYS'
order by name;
v_owner varchar2(40);
v_name varchar2(50);
v_type varchar2(40);
BEGIN
dbms_output.put_line(upper(pin_referenced_name)||' is found in the following objects.');
dbms_output.put_line(' ');
dbms_output.put_line(RPAD('OWNER', 30, ' ')||RPAD('NAME', 60, ' ')||RPAD('OBJECT TYPE', 30, ' '));
dbms_output.put_line('-------------------------------------------------------------------------------------------------------------------');
FOR i IN cur_get_dependancy
LOOP
v_owner := RPAD(i.owner, 30, ' ');
v_name := RPAD(i.name, 45, ' ');
v_type := RPAD(i.type, 30, ' ');
dbms_output.put_line(v_owner ||v_name|| v_type);
END LOOP;
END find_string;I'm using the link [email protected]. The procedure compiles for other database links used in the cursor including the one commented to the right of the code 'prod.world'.
What's even stranger is that I took the SELECT statement
SELECT distinct owner, name, type
FROM [email protected] -- prod.world
WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d'
AND referenced_type <> 'SYNONYM'
AND owner <> 'SYS'
order by name;out of the procedure and ran it on the command line using the @pinp.world link, the SQL statement ran just fine. But when I tried to compile the above procedure with that exact same SQL statement with the exact same link I get the following string of errors.
ORA-04052: error occurred when looking up remote object [email protected]
ORA-00604: error occurred at recursive SQL level 1
ORA-02068: following severe error from PINP
ORA-03113: end-of-file on communication channelHow can the link work just fine in a regular SQL statement but then cause an error when its compiled in code that otherwise compile just fine when using any other link or even just a plain database. Does anyone have any suggestions?OK Justin,
Here's the query by itself run in another database using the @pinp.world link and querying the dba_dependencies table in the pinp.world database. As you can see the query using this link works just fine returning the requested rows. I can't figure out why the compiler is having an issue with essentially this same query when I try to compile it in a cursor in TOAD. Also this is the database (dev1.world) that I'm trying to compile this Procedure in.
By the way I'm in an Oracle 9.2.0.6 database and TOAD v9.2.
SQL> conn apps/apps1@dev1
Connected.
SQL> SELECT distinct owner, name, type
2 FROM [email protected]
3 WHERE lower(referenced_name) = lower('ALL_USERS')
4 AND referenced_type <> 'SYNONYM'
5 AND owner <> 'SYS'
6 order by name;
OWNER NAME TYPE
PUBLIC ALL_USERS SYNONYM
XDB DBMS_XDBUTIL_INT PACKAGE BODY
XDB DBMS_XDBZ0 PACKAGE BODY
SYSTEM MVIEW_EVALUATIONS VIEW
SYSTEM MVIEW_EXCEPTIONS VIEW
SYSTEM MVIEW_FILTER VIEW
SYSTEM MVIEW_LOG VIEW
SYSTEM MVIEW_RECOMMENDATIONS VIEW
SYSTEM MVIEW_WORKLOAD VIEW
ORASSO WWCTX_API PACKAGE BODY
PORTAL WWCTX_API PACKAGE BODY
ORASSO WWEXP_UTL PACKAGE BODY
PORTAL WWEXP_UTL PACKAGE BODY
PORTAL WWPOB_API_PAGE PACKAGE BODY
PORTAL WWPOF PACKAGE BODY
ORASSO WWPRO_PROVIDER_VALIDATION PACKAGE BODY
PORTAL WWPRO_PROVIDER_VALIDATION PACKAGE BODY
PORTAL WWSBR_EDIT_ATTRIBUTE PACKAGE BODY
PORTAL WWSBR_FOLDER_PORTLET PACKAGE BODY
PORTAL WWSBR_USER_PAGES_PORTLET PACKAGE BODY
ORASSO WWUTL_API_PARSE PACKAGE BODY
OWNER NAME TYPE
PORTAL WWUTL_API_PARSE PACKAGE BODY
PORTAL WWUTL_EXPORT_IMPORT_LOV PACKAGE BODY
ORASSO WWUTL_LOV PACKAGE BODY
PORTAL WWUTL_LOV PACKAGE BODY
PORTAL WWV_CONTEXT PACKAGE BODY
PORTAL WWV_CONTEXT_UTIL PACKAGE BODY
PORTAL WWV_DDL PACKAGE BODY
PORTAL WWV_GENERATE_UTL PACKAGE BODY
PORTAL WWV_GLOBAL PACKAGE
PORTAL WWV_MONITOR_DATABASE PACKAGE BODY
PORTAL WWV_PARSE_AS_SPECIFIC_USER PACKAGE BODY
PORTAL WWV_PARSE_AS_USER PACKAGE BODY
PORTAL WWV_SYS_DML PACKAGE BODY
PORTAL WWV_SYS_RENDER_HIERARCHY PACKAGE BODY
PORTAL WWV_THINGSAVE PACKAGE BODY
PORTAL WWV_UTIL PACKAGE BODY
PORTAL WWV_UTLVALID PACKAGE BODY
38 rows selected.
SQL>Let me know what you think.
Thanks again. -
Why do I get an invalid email address when gifting an item or itunes gift card?
I have read additional discussions and they have indicated not to use the contact but enter the actual email address itself. To no avail i continue to get the same error. Frustrated incorporated :-(
bsat, thank you for helping out!
I had tried using only one ncReset previously and was experiencing driver errors. I removed the second ncReset as you suggested and now it seems to work with only one. I cannot get it to fail like it was doing.
However, at least one ncReset must be used or I get the following error:
ERROR ncConfig CAN1: Driver error (qual=000b000)
Press any key to continue
I get this error even when the program terminates normally. For example:
1) Build obj2obj with the ncReset command.
2) Execute and allow to terminate normally.
3) Edit obj2obj and remove ncReset command.
4) Execute and the error message is displayed.
Amazingly, I was also able to single step through most of the program this morning. I got the first three messages (of 10 total) before ge
tting the error:
Microsoft Visual C++
First-chance exception in cctool.exe (NTDLL.DLL): 0xC0000008: Invalid Handle
It seems to be more random than first appeared and perhaps more related to MSVC than to the NI-CAN card. Any insight?
Also, having to include an ncReset is undesireable since I'd like to develop a CAN driver that could be called from multiple threads. I'd be very interested in your opinion on why I'm having trouble getting it to work without one.
Thanks again for your help, it is greatly appreciated! -
0
down vote
favorite
I am working on a WPF app that I want to create for Windows 8. I followed steps mentioned in
Hansleman's blog to make some manual modifications using WinRT functions in a WPF app. Everything worked well, until I tried to publish the app. When I clicked on publishing the app I got error "The 'ResolveManifestFiles' task failed unexpectedly.
System.ArgumentException: Value does not fall within the expected range."
Afterwards, it will produce the same error when attempting a simple solution build.
Even if you create a simple WPF project and add the references mentioned in blog to access WinRT functions and publish, this issue can be reproduced.
I think it would be common scenario to call WinRT functions from WPF and someone should have done it. Is anyone aware what should be done to fix this issue?I am having the same problems and came across this article while researching a workaround.
It is surprising more people aren’t talking about this.
Here are the steps to reproduce the problem; Using Visual Studio Express 2012 (x64) create a new VB Windows Forms Application.
Unload the project and edit the [ProjName].vbproj in the solution explorer.
Add <TargetPlatformVersion>8.0</TargetPlatformVersion> to the <PropertyGroup>.
Save and reload the project. In Add Resource/Reference Manager add the Windows.minmd found under Windows/Core.
This WinRT/Desktop solution will run as expected. Now try to Publish this solution.
It will FAIL with the following ERROR; “The ResolveManifestFiles task failed unexpectedly, Value does not fall within the expected range.”
Attempting to build or run the solution again now will fail with the same Error.
The only way to build the project now is to remove the “Enable ClickOnce security settings” option under the project properties Security settings.
Occasionally using this trick, the solution will build but not run.
When that happens jiggle around with Debug/Release Solution Configurations and the Any CPU/x64 Solution Platforms then rebuild and try the run again.
This fussing around will get you through development however any attempt to publish with restore the ClickOnce security setting and create the previous Error.
The first question here is how do you publish a WinRT app for the desktop with VS2012 Express.
Then secondly, if that is not possible can we publish this Express solution with a 3rd party deployment tool like InstallShield Limited Edition or the WIX Toolset.
Neither however seems functional in a VS Express environment.
Then thirdly, are there ways to access hardware sensor devices from a desktop solution without resorting to the WinRT API.
Any ideas or new research directions would be greatly appreciated. -
Getting an invalid Item error when resizing(maximizing) the form.
Hi Experts,
I have an error when in click sales A/R invoice...i have added some functionality in that as extra...all r working fine but some times when i minimize the window & again maximize(resize) it this error message is being displayed(only after 10-15 clicks).can anybody tell me some suggestions...
System.Runtime.InteropServices.ComException(oXFFFFF7F9):Item -Invalid
item[6600-3].form Unique id:'F_173',Item Unique ID:'100000330'
at SAPbobosCOM.ItemClass.Item(Object Index)
at SampleProject.clsARInvoice.FormResize(String FormUID,ItemEvent & pVal,Boolean&
BubbleEvent) in D:\sampleproject
Here is my coding for resizing the form
Sub FormResize(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean)
Try
Dim objForm As SAPbouiCOM.Form
Dim objCopyFromBtn As Object
Dim objBtn As SAPbouiCOM.Button
objForm = objSBO_Application_ARINV.Forms.ActiveForm
Select Case pVal.Before_Action
Case False
If addFlag = True And bCMFlag = False And bBGFlag = False And bOAFlag = False And bCHFlag = False Then
"<----In this line the error occurs------------------>"
objCopyFromBtn = objForm.Items.Item("10000330")
"<----In this line the error occurs------------------>"
objForm.Freeze(True)
objForm.Items.Item("btnSaleQtn").Left = objCopyFromBtn.left - 5 - 200 '- 275
objForm.Items.Item("btnSaleQtn").Top = objCopyFromBtn.Top
objForm.Items.Item("txtQtnNo").Left = objForm.Items.Item("btnSaleQtn").Left - 5 - 100 '- 275
objForm.Items.Item("txtQtnNo").Top = objCopyFromBtn.Top
objForm.Items.Item("lblQtnNo").Left = objForm.Items.Item("txtQtnNo").Left - 5 - 100 '- 275
objForm.Items.Item("lblQtnNo").Top = objCopyFromBtn.Top
objForm.Freeze(False)
End If
bCMFlag = False
bBGFlag = False
bOAFlag = False
bCHFlag = False
End Select
Catch ex As Exception
objSBO_Application_ARINV.MessageBox(ex.ToString)
End Try
End Sub
regards,
shangai.okey. catch the Form_resize event for Form 133 (A/R invoice) and inside it, call FormResize procedure .
If pVal.FormType = "133" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_RESIZE And pVal.Before_Action = True Then
Try
FormResize(pVal.FormType, pVal.EventType, pVal.FormTypeCount, BubbleEvent)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If
you will have to modify the procedure's receiving arguments accordingly.
within this procedure, as I mentioned before,
Sub FormResize(ByVal FormType As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByVal FormTypeCount As Integer, ByRef BubbleEvent As Boolean)
Try
Dim objForm As SAPbouiCOM.Form
Dim objCopyFromBtn As Object
Dim objBtn As SAPbouiCOM.Button
objForm = objSBO_Application_ARINV.Forms.GetForm(FormType, FormTypeCount)
'---------rest of the code
Catch ex As Exception
End Try
End Sub
GetFormByTypeAndCount is Deprecated so to be on safe side , use 'GetForm'. it does the same thing .
try this.
regards,
Binita
for your question about Count of the form, in SAP we can have multiple instance of standard forms and in that case, to uniquely identify each instance, it is better to refer to that form by not just its type but also with its count. so if you open three A/R invoice Form, you will have three form with Type 133 but with different count.
Edited by: Binita Joshi on Aug 22, 2008 8:57 AM -
hi can anyone tell me why the message server error shows
i did a icloud backup and have not been able to see if it was completed
i now have a replacement iphone and want to know how i get the files back
please helpHi there n@nnydee!
I have an article for you that will give you some steps to go through in order to troubleshoot this issue with restoring from your iCloud back ups. The article can be found right here:
iCloud: Troubleshooting restore issues with iCloud Backup
http://support.apple.com/kb/ts4036
Thanks for using the Apple Support Communities!
Cheers,
Braden -
Why do I get the 'PowerPC code' error when trying to launch an Intel-based app from a CD?
When trying to launch a Flash-based app from a CD on my Mac Book Pro, I get the "PowerPC apps are no longer supported" error. Yet the app is not built with PowerPC code.
This also happened with Microsoft Office programs soon after I upgraded to OSX Lion, but someone was able to solve that for me.It's just a free disc from a photo magazine, but the app runs fine on a Mac Pro running 10.7.3. Could it be hardware related?
I have actually asked this on behalf of a reader (I work for the company that makes the magazine) who is experiencing this problem, I just can't find any reason why the error would display in these circumstances. I apologise if this is against the community's usual practise - I just want to sort this guy out!
The app on the disc is compiled using MDM Zinc, but like I said it runs a-OK on Lion everywhere else.
Any help would be gratefully received and appreciated! -
Why do I get out of memory errors when 10GB memory is free?
I am on HP UNIX 64bit 11.23 titanium, running Oracle 10.2.0.3. . My server has 24GB memory and of that 10GB is free (as seen in glance). When I doing oracle exp or rman commands, I get:
ORA-04030: out of process memory when trying to allocate 1049112 bytes (KSFQ heap,KSFQ Buffers)
I checked both rman and exp are 64bit executables, so they should be able to access all the memory on the system.I have just one parameter in init.ora sga_target which controls everything in SGA. hw two instance I was reporting porblem have sga_target of 256M and 192M, Problems happen off and on, but 9 to 10GN free memory is alwyas available on server.
Her is more information on the problem:
1. I do not think problem is with ulimit, but something is definitely not set correctly. Ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 4194300
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
parameters are reasonable.
2. I have 10GB free memory. I run simple java command
Java
it works.
3. Now I increase memory for sga_target for one of my Oracle instance from 256M to 512M. I only hav eon eparameter sga_traget which controls everything in SGA. There are many other Oracle instances on the server. My Oracle instance starts without problems.
4. I now run java, it gives me:
Out of memory error, so Oracle has exhausted some memory (probably shared memory) which is needed by java. I still have 9-10GB memory on my server, so why java is not using this memory.
5. After iOracle instance starts, off and on Oracle backups fail with ORA- error (not enough memory) I reported earlier.
I hope HP engineers can figure this out. -
Why do I get a file security error when downloading itunes.
I try to download itunes, but about halfway through an error messge comes up that says error with file security:get lasterror:5
Hi lizz4321,
A digital ID is made up of three components; a private key, a corresponding public key, and some identifying information. The keys themselves are pretty straight forward, they are just big blobs of numbers used to encrypt and decrypt data. It's the identifying information that gets a bit tricky. On first look, the identifying information looks like plain text. You'll see your name and the issuer's name, a serial number, some dates for when the validity starts and ends. All pretty straight forward.
However, all of this information is actually formatted using something called ASN.1 (it stands for Abstract Syntax Notation) and then encoded using BER (Basic Encoding Rules). When someone creates a digital ID they can put just about anything in there. Per specifications (RFC 5280 if you wanted to look it up) some items are required, and others are optional. Each piece of information that goes into the public-key certificate (the PKC is basically the digital ID without the private key) is contained in an extension. These extensions are identified using an OID (Object ID) and conform to a specification which may either be public or confidential.
There are two possibilities in the case you are seeing. Either, some of the information that Acrobat knows about was formatted or encoded incorrectly, or, there is an optional entry that Acrobat doesn't understand how to decode. My guess is it's the latter possibility. There is a rule that states if an extension is marked as critical, and the application using the public-key certificate (in this case the application would be Acrobat), doesn't understand the extension, then the application is supposed to reject the certificate. It could be the former case (badly formatted data), but without seeing the certificate all I can do is guess.
Steve -
Why am I getting an ICC profile error when making a pdf?
I have not see this before but now when I export my document to a high quality PDF, then I get an error message which says that "version 4 ICC profiles were converted to version 2 ICC profiles during pdf export." I have used this same setting for years and have not changed it and just started seeing it this last couple of weeks. What does it mean that the profile must be changed? What is the difference in quality between version 4 and version 2?
Thanks for any help.
— RichardI have not see this before but now when I export my document to a high quality PDF, then I get an error message which says that "version 4 ICC profiles were converted to version 2 ICC profiles during pdf export." I have used this same setting for years and have not changed it and just started seeing it this last couple of weeks. What does it mean that the profile must be changed? What is the difference in quality between version 4 and version 2?
Thanks for any help.
— Richard -
Why am I getting an "unsupported url" error when I click the link to find my apple id?
When I click the link to change my password or to find my apple id, I get a blank page with only "unsupported url error". I've tried on multiple devices and while I can log on with one apple ID, I can not get any of the links to change id or password or to find an additonal password to work. Any suggestions?
When I click the link to change my password or to find my apple id, I get a blank page with only "unsupported url error". I've tried on multiple devices and while I can log on with one apple ID, I can not get any of the links to change id or password or to find an additonal password to work. Any suggestions?
Maybe you are looking for
-
1. when i read an sms, there is option to forward as email in 9900. Since i am using Q10, i can not do this. I need this immediately. Anybody can help?? I am ready to buy any 3rd party app also, if it can provide this without slowing down the perform
-
Can I get ready-made templates for presentation?
I am savvy user of photoshop but I am new to adobe preiere pro. I need to make a presentation for the site http://www.7boats.com/ . Can I get some good ready-made templates in premiere pro so that minimum edit is required by altering text/images? Is
-
Any problem if we areon ABAP SP12 and JAVA SP09 for PI 7.0
Hi All, I was wondering being on different ABAP and Java SP's could cause any problems or compatibility issues in PI 7.0. We are on SP12 for ABAP stack, SP09 for JAVA stack. We are getting the following error (Red LED: Test Returned an Error) in Self
-
How to connect to WAP Wi-Fi connection?
Before when I used WEP connection I didn't have any problems with connecting. Now I use WAP and it says all the time that password is incorrect, but I'm sure that it is correct. My software is updated. I use MacBook Pro 13" with Mac OS X 10.6.5. Can
-
Try this out for yourselves. Put the following code into the main frame of a blank AS3 Document. stage.addEventListener(KeyboardEvent.KEY_DOWN,keydown); function keydown(e:KeyboardEvent):void { if (e.keyCode==38) { trace("up is pressed."