CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: bobby2387

Search: Search took 0.03 seconds.

  1. System Access violation exception:Attempted to read or write protected memory..Help!

    Hello,

    I have CAN Dll program for my application,which was separately used.Now I have included the Drivers program into my application Program and I am having this error System Access Violation...
  2. Re: Help me with "fatal error C1189: #error : WINDOWS.H already included"

    But I haven't used #include <windows.h>,except for the file server_main.cpp. When i am trying to remove the<windows.h> from that file I am getting the error as

    1>ServerMain.obj : error LNK2022:...
  3. Help me with "fatal error C1189: #error : WINDOWS.H already included"

    Hello,

    I have made few changes to my code like included the CAN Dll file with in my Application code.I am using VS 2008 and after compiling I am getting this error:



    1>------ Build started:...
  4. Re: How to reduce high CPU usage caused by receiver thread of CAN messages?

    Can you Please tell me how to set filter for CAN driver to receive only the message id,which are required?
  5. Re: How to reduce high CPU usage caused by receiver thread of CAN messages?

    Yes Paul I have removed the printf. Thanks for the information.
  6. Re: How to reduce high CPU usage caused by receiver thread of CAN messages?

    All the messages which are around 11 of them has to be received in 40 milliseconds.That means approx 4 ms for each messages.But instead of getting all 11 messages once in 40 ms,these are received...
  7. Re: How to reduce high CPU usage caused by receiver thread of CAN messages?

    I have changed my code in #12 as per the code in #13.And I am sure that the threads I have implemented working fine except for this receive thread.
  8. Re: How to reduce high CPU usage caused by receiver thread of CAN messages?

    [QUOTE] How did you confirm that it is the Rcv_Msg() thread that is actually using the CPU? What are the other threads in the application doing?

    I have used Procexp to see what all threads are...
  9. Re: How to reduce high CPU usage caused by receiver thread of CAN messages?

    I think new messages are coming before the previously received messages are parsed.As a result the buffer is overwritten.So can you tell me am I thinking in the correct way?If so by creating a buffer...
  10. Re: How to reduce high CPU usage caused by receiver thread of CAN messages?

    I have used this tool and I have seen that there is no memory leak.The CPU usage is mainly because of receiver thread which is continuously running,that is used for receiving messages from CAN...
  11. Re: How to reduce high CPU usage caused by receiver thread of CAN messages?

    Can you please tell me how to avoid the non-blocking of xlreceive().I tried adding xlSetNotification() API in my code.And how can I call xlreceive() to read more than 1 event at a time?
    Please help...
  12. Re: How to reduce high CPU usage caused by receiver thread of CAN messages?

    But for my case its an issue,because of High CPU usage the performance of HMI is degrading.After 3 hours of continuous HMI Pc getting slower.

    I am using XL Driver library.
  13. Re: How to reduce high CPU usage caused by receiver thread of CAN messages?

    So is there any other way to solve this issue.i am thinking that the buffer size for the receiving CAN messages is not large enough.So by creating larger buffer will solve this issue?
  14. How to reduce high CPU usage caused by receiver thread of CAN messages?

    Hello,

    I am struck with a serious issue and not able to get through it.I am writing a program which handles the CAN messages Received from BUS.My code is taking almost 60% of CPU usage.
Results 1 to 14 of 20





Click Here to Expand Forum to Full Width

Featured