Click here to Skip to main content
15,925,440 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regexp dilema Pin
skelmannen21-Apr-10 2:43
skelmannen21-Apr-10 2:43 
AnswerRe: Regexp dilema Pin
PIEBALDconsult21-Apr-10 3:30
mvePIEBALDconsult21-Apr-10 3:30 
GeneralRe: Regexp dilema Pin
skelmannen21-Apr-10 3:41
skelmannen21-Apr-10 3:41 
GeneralRe: Regexp dilema Pin
PIEBALDconsult21-Apr-10 7:58
mvePIEBALDconsult21-Apr-10 7:58 
AnswerRe: Regexp dilema Pin
Kythen21-Apr-10 6:00
Kythen21-Apr-10 6:00 
GeneralRe: Regexp dilema Pin
skelmannen21-Apr-10 21:28
skelmannen21-Apr-10 21:28 
QuestionStorage card in the emulator Pin
bacem smari20-Apr-10 23:53
bacem smari20-Apr-10 23:53 
AnswerRe: Storage card in the emulator Pin
Michel Godfroid21-Apr-10 2:03
Michel Godfroid21-Apr-10 2:03 
RantRe: Storage card in the emulator Pin
bacem smari21-Apr-10 2:54
bacem smari21-Apr-10 2:54 
AnswerRe: Storage card in the emulator Pin
bacem smari21-Apr-10 3:48
bacem smari21-Apr-10 3:48 
QuestionAdd checkboxs dynamically in csharp smart device project Pin
Tunisien8620-Apr-10 23:28
Tunisien8620-Apr-10 23:28 
GeneralRe: Add checkboxs dynamically in csharp smart device project Pin
Tunisien8621-Apr-10 5:26
Tunisien8621-Apr-10 5:26 
Questiontype casting a string to a type which is getting received in a string Pin
dashingsidds20-Apr-10 23:20
dashingsidds20-Apr-10 23:20 
AnswerRe: type casting a string to a type which is getting received in a string Pin
surender.m20-Apr-10 23:34
surender.m20-Apr-10 23:34 
GeneralRe: type casting a string to a type which is getting received in a string Pin
J4amieC21-Apr-10 1:40
J4amieC21-Apr-10 1:40 
GeneralRe: type casting a string to a type which is getting received in a string Pin
surender.m21-Apr-10 1:47
surender.m21-Apr-10 1:47 
GeneralRe: type casting a string to a type which is getting received in a string Pin
J4amieC21-Apr-10 1:50
J4amieC21-Apr-10 1:50 
AnswerRe: type casting a string to a type which is getting received in a string Pin
Keith Barrow20-Apr-10 23:39
professionalKeith Barrow20-Apr-10 23:39 
AnswerRe: type casting a string to a type which is getting received in a string Pin
surender.m21-Apr-10 3:27
surender.m21-Apr-10 3:27 
GeneralRe: type casting a string to a type which is getting received in a string Pin
dashingsidds21-Apr-10 22:42
dashingsidds21-Apr-10 22:42 
AnswerRe: type casting a string to a type which is getting received in a string Pin
PIEBALDconsult21-Apr-10 3:57
mvePIEBALDconsult21-Apr-10 3:57 
QuestionSending a Custom Ethernet packet Pin
spiritboy20-Apr-10 22:48
spiritboy20-Apr-10 22:48 
QuestionICCompress Pin
TimSWatson20-Apr-10 22:38
TimSWatson20-Apr-10 22:38 
Hi
I am trying to use ICCompress in C# to compress images from a IP camera. Its not going very well im getting this exception:

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt

The code that causes the exception is,

byte[] outImgData = new byte[outbi.biHeight * outbi.biWidth * (outbi.biBitCount / 8)];

GCHandle pinnedArray = GCHandle.Alloc(outImgData, GCHandleType.Pinned);
IntPtr outImgPtr = pinnedArray.AddrOfPinnedObject();

BitmapData inBmpDat = image.LockBits(
    new Rectangle(
    0, 0, image.Width, image.Height),
    ImageLockMode.ReadOnly, image.PixelFormat);

Avi.ICCompress(compressorHnd,
            Avi.AVICOMPRESSF_KEYFRAMES,
            ref outbi,
            outImgPtr,
            ref bi,
            inBmpDat.Scan0,
            0,
            0,
            frameNum,
            0,
            5000,
            0,
            0);


Im new to importing DLL's so im not to sure if the arguments im using are correct. Can anyone help?

Thanx
QuestionFileSystemWatcher problem when multi-files deletion in watched folder Pin
Rikq20-Apr-10 22:31
Rikq20-Apr-10 22:31 
QuestionHow to search Special Character in sql server 2005? [modified] Pin
Ashwani Dhiman20-Apr-10 22:11
Ashwani Dhiman20-Apr-10 22:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.