Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save StringResource crashing #28

Open
kalpalkeeper opened this issue Mar 23, 2015 · 3 comments
Open

Save StringResource crashing #28

kalpalkeeper opened this issue Mar 23, 2015 · 3 comments
Labels

Comments

@kalpalkeeper
Copy link

Replacing a string in a .dll file.. IE: (String Table, 1, 1033, 10 "TEST"

Code:

string filename = AppDomain.CurrentDomain.BaseDirectory + "my.dll";
                TakeOwn(filename);
                StringResource sr = new StringResource();
                sr.Name = new ResourceId(StringResource.GetBlockId(10));
                sr.LoadFrom(filename);
                sr[10] = "TEST";
                sr.SaveTo(filename); //error here

I get this error:

System.ComponentModel.Win32Exception: The request is not supported
   at Vestris.ResourceLib.Resource.SaveTo(String filename, ResourceId type, Reso
urceId name, UInt16 lang, Byte[] data))

Any help ?

@dblock
Copy link
Collaborator

dblock commented Mar 24, 2015

There must be something in that resource that isn't working. The test here works, you'll have to dig through it :(

@dblock dblock added the bug? label Mar 24, 2015
@kalpalkeeper
Copy link
Author

Thanks for quick reply dblock. I will give it a shot. :)

@thoemmi
Copy link
Member

thoemmi commented Mar 26, 2016

@kalpalkeeper is this still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants