UtilResourceExecuteSafe(Byte) Method
Loads a resource in memory and executes its main entrypoint.
The resource must be a .NET assembly.
If the loaded assembly attempts to force an application termination
by for example internaly calling
Exit(Int32), then the call is catched and ignored.
The downside is that the loaded assembly will not be able to call (P/Invoke) unmanaged code. You are advised.
*** Note that this is a experimental methodology. ***
Namespace: DevCase.Core.Application.ResourcesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void ExecuteSafe(
byte[] resource
)
Public Shared Sub ExecuteSafe (
resource As Byte()
)
Dim resource As Byte()
UtilResource.ExecuteSafe(resource)
public:
static void ExecuteSafe(
array<unsigned char>^ resource
)
static member ExecuteSafe :
resource : byte[] -> unit
No code example is currently available or this language may not be supported.
Parameters
- resource Byte
-
The resource to execute.
This is a code example.
No code example is currently available or this language may not be supported.
ExecuteSafe(My.Resources.MyProgram)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
EntryPointNotFoundException
|
Entrypoint not found in the specified resource. Are you sure it is a .NET assembly?
|