Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 2 out of 5     Rate this Document

My NI-CAN Example Program Crashes in MSVC++ Debug Mode

Primary Software: Measurement Studio>>Visual C++ Support
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: Driver Software>>NI-CAN
Hardware: Industrial Communications>>CAN, Industrial Communications>>CAN

Problem: I'm using Microsoft Visual C++ 6.0 for applications and I'm having trouble running an example program (obj2obj.c) in debug mode:
  1. It runs fine if I compile and link it in DOS.

  2. It runs fine if I build it in Visual C++ Release Mode.

  3. It does not run if I build it in Visual C++ Debug Mode.
Another example program (simplanz.c) runs fine regardless of the mode I use to build it.

The problem appears to occur when I pass strings like this:
    ncConfig("CAN0",8,AttrIDList,AttrValueList)
which results in an "unhandled exception" error.

Solution: See the related KnowledgeBase entry (linked below), which contains an updated version of the nican.dll that fixes this problem.

Related Links: Why Do I Get an "unhandled exception" When I Compile My CAN Project in Visual C++ 6.0?

Attachments:





Report Date: 03/12/1999
Last Updated: 05/11/2004
Document ID: 1JBF01MU

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit