|
Hi,
I am looking at a VC class that makes use of the Intel JPEG Library. The class is used to convert a BMP to jpeg.
My problem is the class only works with 24bit jpegs.
Is anyone familiar enough with JPEGS, to offer any advice on what is causing the dependency.
Cheers
Rich
|
|
|
|
|
does the Intel code read 8-bit JPEGs?
i use IJG's code. it works.
-c
"Should you not have a ramekin of sea salt beside the stove, you don’t deserve oatmeal."
Dean Allen
|
|
|
|
|
I was under the impression that JPEG supports only 24bit color?!?
Signature space for rent. Apply Within.
|
|
|
|
|
JPEG can support single-channel 8-bit grayscale images, too. and, JPEG supports images with up to 12-bits per channel.
-c
"Should you not have a ramekin of sea salt beside the stove, you don’t deserve oatmeal."
Dean Allen
|
|
|
|
|
I have an MFC application that appears to have a memory leak.
I read the article "Catching Memory Leaks" and placed the code in my application. Also used the MS example code to add some additional checkpoints inside the main loop of the program. The code executed inside the debugger for over 24 hours. There were no leaks detected. The memory usage reported by Task Manager was almost constant.
However, I took the same debug .EXE file and executed it on a Windows XP platform. After 24 hours the memory usage, as reported by Task Manager, increased by about 30MB and continued to increase the longer the program ran.
The program uses the GetBufferSetLength and ReleaseBuffer functions which are my primary suspects. The documentation for ReleaseBuffer is a bit cryptic. The CString to which they are applied though is declared in an OnTimer routine and definitely goes out of scope each pass.
Any ideas what I should try next? The biggest problem is not being able to do much in the way of diagnostics on the target system.
TIA...
>>>-----> MikeO
|
|
|
|
|
Have you tried setting up a remote debugging session?
Thta should help you track it down if its OS dependant.
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
Roger Allen wrote:
Have you tried setting up a remote debugging session?
I'm not familiar with how to do this. Is there a how-to guide available here on CodeProject?
>>>-----> MikeO
|
|
|
|
|
Recapping the situation: I have an app compiled for Debug which while running under the debugger is fine. If I execute the same app stand-alone it appears to have a memory leak. As suggested earlier, the stand-alone platform was configured for remote debugging.
Under Debug, Task Manager reports the application using around 7MB of memory. Task Manager also reports the overall memory usage of the system to be around 110MB. While the app memory usage varies more than I would have expected, it has not gone over 10MB that I have observed while running in debug mode.
Running standalone Task Manager initially reports the application using the same 7MB amount of memory. After 8 hours of operation the memory usage of the application has increased around to around 10MB, and after 48 hours it is around 14MB. The overall memory usage reported after 8 hours though has increased by 30MB! and this value continues to increase linearly with time. After 48 hours the overall memory usage has exceeded 300MB.
I have placed memory leak detection code around the entire app and inside the app around the core functions. The inside code reports an occassional change in memory, but reports a reciprocal change later on. As noted, it doesn't leak under debug, so dumping statistics to the debug output window is not helping resolve the problem.
Any further suggestions for locating the cause of this problem would be appreciated. FYI, the stand-alone platform is XP though I do not know if this is significant.
>>>-----> MikeO
|
|
|
|
|
Hi,
How to get MODEMDEVCAPS by calling GetCommProperties ?
MDN says that COMMPROP.wcProvChar contains MODEMDEVCAPS
wcProvChar is widechar, How to get MODEMDEVCAPS structure from COMMPROP.wcProvChar ?
Thanks,
Perumalla Koteswara Rao, (B.Tech)
Hyderabad, Inida
|
|
|
|
|
Can I using CTreeCtrl show only some folders, for example:
Show all folders in (C:\\winnt\)
excluding rest disks etc ... ?
thank you!
==============
www.design.kg
|
|
|
|
|
|
Offcourse u can, if you are programming the TreeCtrl
yourself. Can u be more specific abt ur requirements ?
|
|
|
|
|
But how to do it?
All samples shown all tree(desctop,c...), and I need only specified, maybe like in Outlook(only local folders) without up folders ...
like C:\\somefolder\someotherfolder\
must be a root in TreeCtrl ...
can anybody send me a sample, please?
==============
www.design.kg
|
|
|
|
|
HI,
all
I am interested in Genutella which is a P2P communication protocol.But now I did not know how to begin
my study on Genutella .
So I ask help from you . Who can give me some useful
Urls where I can download the VC souce code as well as the executable Genutella Application itselsf ?
Your advanced help will be appreciated !
Regards.
Marion.
|
|
|
|
|
|
I have download some source code,such as Morpheus,Gnucleus
from that site. But I can not build and run them in VC IDE .
I have search for long time ,but find no source code
which can be built correctly .
Can you give me some useful url ??
thx.
|
|
|
|
|
I've lost Class View and i would like to know what should i do to regenerate it.
Wish for help!
rechi
|
|
|
|
|
delete *.ncb and *.opt files
|
|
|
|
|
If the above doesn't work, try with *.clw file. Delete it, or rename it to be something *_bak.clw. Then press Ctrl+W in VC++ 6.0 to rebuild the *.clw file.
|
|
|
|
|
Make your .ncb file read/write.
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
hi
can we use the class that is used in console programming in MFC programming.
Thanks
|
|
|
|
|
Only some question: which class, own written or system? What API functions does it use?
If class does not use any Console functions it can be freely used in MFC.
|
|
|
|
|
Of course you can!
Maxwell Chen
People say "No news is good news". Then, no bug is good bug!?
|
|
|
|
|
ok, i see. Thanks heap for that.
|
|
|
|
|
Kann mir jemand 'n Tip geben, wie ich die Date-/Timepicker so konfigurieren kann, das jeweils nur die Tage, Monate bzw. Jahre angezeigt werden
und nicht der ganze Kalender?????
|
|
|
|