Skip to main content

Common Issues and Troubleshooting

This page summarizes frequently occurring issues and checks when using the library, including migration scenarios.

Build-time Issues

Compile error due to MPXOpen argument mismatch

  • Symptom:
    • Argument count error at MPXOpen call
  • Check:
    • In ADL2N, MPXOpen takes 3 arguments: Devices, Num, Count
  • Action:
    • Add Num (array length)
    • Ensure old ADL1N two-argument calls are removed
  • Symptom:
    • Unresolved symbols such as MPXSetCANParam
  • Check:
    • Verify CAN APIs are renamed to MPXCAN...
  • Action:
    • MPXSetCANParam -> MPXCANSetParam
    • MPXGetLogEx -> MPXCANGetLogEx
    • MPXSetSlot -> MPXCANSetSlot, etc.

Runtime Issues

BadImageFormatException (.NET)

  • Symptom:
    • BadImageFormatException occurs at startup
  • Check:
    • Wrapper DLL bitness matches process bitness
    • 32-bit process is not loading MPXCtrldotNET40Free_x64.dll
    • 64-bit process is not loading MPXCtrldotNET40Free.dll
  • Action:
    • Align 32-bit/64-bit settings and rebuild
    • See .NET Notes

DllNotFoundException (.NET)

  • Symptom:
    • MPXCtrlFree.dll or MPXCtrlFree_x64.dll not found at runtime
  • Check:
    • Native DLLs are placed in the same folder as the executable
    • Wrapper/native DLL bitness matches
  • Action:

Logs are not acquired

  • Symptom:
    • Log count does not increase after monitoring starts
  • Check:
    • MPXSetGetLogMode is set for the target CH
    • In API mode, MPXGetLog / MPXCANGetLogEx / MPXLINGetLogEx is called periodically
  • Action:
    • Explicitly set log mode and implement periodic retrieval loop

E_STATUS is returned

  • Symptom:
    • E_STATUS from MPXMonitorStart etc.
  • Check:
    • MPXCANSetParam or MPXLINSetParam is called beforehand
    • Call order follows the basic flow
  • Action:

Multi-device synchronization is unstable

  • Symptom:
    • Start/stop timing does not align in multi-device setup
  • Check:
    • Start order: slave -> master
    • Stop order: master -> slave
  • Action:

References