The reason it's given you this message is because you have the condition to test if the ViewState is not null. What happens if ViewState["CurrentTable"] is null? (You have a similar issue if dtCurrentTable.Rows.Count == 0. To fix this, return an empty DataTable from the method (most style guides recommend not returning null).
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
I'm working on a program that will convert a wav-file to mp3, tag it and then upload it via FTP.
I'm done with the FTP-part and am now working on the converting to MP3 part (the only thing left).
The plan is to use LAME (lame_enc.dll) to do the encoding/converting (unless you have any other suggestion). But I've hit a snag.
I couldn't find any good examples for Lame & .NET. I found this here on TCP: C# MP3 Compressor[^]
It wouldn't compile due to missing form components, but I copied the the classes that's relevant.
The project compiles but I get an exception on the call to beInitStream (in the constructor of Mp3Writer). The error states:
PInvokeStackImbalance was detected
and that "the managed PInvoke signature didn't match the unmanaged target signature" (translated from Swedish).
Is there anyone that has an idea what's wrong?! Is this code written for an older version of lame_enc.dll (I've looked at the documentation, but can't see the problem)?
I also tried to use IntPtr etc (found in another example for another DLL), but same result:
It looks like the second dimension of your int32 array isn't defined, so what do you expect? A two dimensional array is an array of arrays. You've declared an array with a hundred slots containing arrays with an unspecified array length.
how cam i create database(sql server .net ) on wp7
Just to verify you did mean Windows Phone 7 right?
As per the other response you would not typically attempt to put a 'server', regardless of the type, on a phone.
If you really just want persistence then you might want to look at an object database which can be embedded in your app. Along those lines you could look at RavenDB (I am not recommending that but merely noting that it exists and there are probably others.)