This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Error in DLP4500 GUI source code



I am running the DLP4500GUI application from .cpp sources using QT. When I add more than 2 patterns to the firmware and click Save Updates, I get the following error in the firmware.cpp file:

The inferior stopped because it triggered an exception.

Stopped in thread 0 by: Exception at 0x5a55b1dc, code: 0xc0000005: read access violation at: 0x0, flags=0x0 (first chance).

I also have a compiled version (.exe file) DLPLCR4500GUI-1.2.0, and when I run that, I don't get any error and the Save Updates seems to work fine. It seems to me that the source are just not completely up to date, relative to the compiled version I have. I suspect that the bug is in the firmware.cpp file, which I have attached. Could you please check if there is a newer version of this file.

Thanks.

firmware.cpp
  • Hello Oline,

    I haven't seen this problem before, but I'll compare your file with my own. I'm out of the office until next week, but I'll try to look at your source file before then. 

    Best regards,

    Blair

  • Hello Oline,

    The file you have is identical to my own. Could you tell me what operating system and version of QT you're using to compile the code?

    Best regards,

    Blair

  • Hi Blair

    Thanks for getting back to me on this. I am using Windows 7 64-bit, and QT 4.8.0. I am compiling in QT Creator using the Microsoft Visual C++ 10.0 compiler.

    I have tested a little more, and I get the error, when I try to save a firmware after adding the attached bmp image. It seems to be independent of how many other images are saved into the firmware. The compiled version of the GUI works, but when I use the compiled sources I get the above error in line 225 of firmware.cpp. Could you try and see, if you can add the attached image and save the firmware using your compiled and the precompiled GUI.

    Thanks,

    Oline

  • Hello Oline,

    I just tried recreating your error after compiling the GUI within QT (using the MinGW compiler) and I didn't get the error you described using your supplied image. Looking at the code I don't see a reason that the compiler would return an error at line 225. Let me try using the Microsoft Visual C++ 10.0 compiler and see if I get the error then.

    Best regards,

    Blair

  • Hi Blair

    Did you get to try the Microsoft Visual C++ 10.0 compiler? The problem could also be that my source code is not up to date. Though we checked the firmware.cpp file, there might be other files that I have, which are not up to date. Can you upload the latest source code package?

    I have tried to add the .bmp to the DLPR350PROM_v1.1.0.bin firmware, which has 14 other images. When I save the firmware, all the 14 original images runs through fine, but only the test.bmp image fails. I put a break point at line 225 in firmware.cpp, and found that the test.bmp image, is the only image, for which line 225 is executed. Could you check, if line 225 gets executed, when you add the test.bmp image?

    Thanks,

    Oline

  • Hello Oline,

    I haven't been able to try the Microsoft Visual C++ 10.0 compiler yet and my colleague who has it is out of town until next week unfortunately. Do you have the same problem when you use the MinGW compiler?

    Best regards,

    Blair

  • Hi Blair

    We are not using the MinGW compiler, and our version of Qt doesn't include it. Hence I don't have to possibility of trying it, at least not at the moment.

    Let me know, when your colleague had a chance to run it with the Microsoft Visual C++ 10.0 compiler.

    Thanks,

    Oline