WEst
Customers
Community Member
    
Posts: 945
Daniel Martinek
|
 |
« Reply #20 on: November 11, 2008, 03:52:05 PM » |
|
If you use Visual Studio (which I would assume), then go to Debug/Exceptions and deactivate the Loader Lock exception.
This is recommended by Microsoft when you use the Managed DX SDK (or a Lib that uses the SDK).
|
|
|
|
|
Logged
|
Greetings
Daniel Martinek Technical Director 23 Volts
|
|
|
Lenn
Customers
Community Member
    
Posts: 876
+/-
|
 |
« Reply #21 on: November 12, 2008, 07:26:14 AM » |
|
Thank you West. Yes, he is correct, try that. I should probably put this advice somewhere in the notes also.
|
|
|
|
|
Logged
|
|
|
|
-Mervin-
Community Member

Posts: 33
|
 |
« Reply #22 on: November 13, 2008, 02:18:02 PM » |
|
ok, fixed that. now i get: EssenceGUI = New EvoGUI(Inp, False) ArgumentOutOfRangeException Length cannot be less than zero. Parameter name: length InnerException: System.ArgumentOutOfRangeException was unhandled Message="Length cannot be less than zero. Parameter name: length" ParamName="length" Source="mscorlib" StackTrace: at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at System.String.Substring(Int32 startIndex, Int32 length) at EvoGUI_1_01.EvoGUI..ctor(TVInputEngine TVInput, Boolean ForcePowerOf2TextureSizes) at essencemorpgclient.frmMain.frmMain_Load(Object sender, EventArgs e) in C:\Users\Mervin\Desktop\Projects\Essence MORPG\Essence MORPG Client\frmMain.vb:line 441 at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow) at System.Windows.Forms.Control.SetVisibleCore(Boolean value) at System.Windows.Forms.Form.SetVisibleCore(Boolean value) at System.Windows.Forms.Control.set_Visible(Boolean value) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at essencemorpgclient.frmMain.Main() in C:\Users\Mervin\Desktop\Projects\Essence MORPG\Essence MORPG Client\frmMain.vb:line 17 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
|
|
|
|
|
Logged
|
|
|
|
Lenn
Customers
Community Member
    
Posts: 876
+/-
|
 |
« Reply #23 on: November 13, 2008, 03:14:22 PM » |
|
Ok, once again, this is not an EvoGUI problem  but I will try to help. It has to do with VB.Net and your code. You can see the line "mscorlib" thats the dll that has problems. I've googled it and these are the possible solutions to your problem: 1) Try Re-Building the application. 2) Make sure that you are not converting something to string with a length smaller than zero. It looks like you are using something such as YourInt.ToString or some VB function on an uninitialized variable. It could be that. Or you are simply passing a negative value to a string converting function. Check those simple things. 3) Make sure you have all of the administrator permissions on the computer you are working on. 4) Make sure that all of the needed DLLs are in place. 5) If you are getting this error only on release, or if running the file as an executable and not from visual studio, or if you are not using the "bin\" folder, then i might have another idea of what is happening. Tell me if this is the case. Lastly, if that doesnt help, give me more information such as the exact point where it breaks, if you are not 100% sure it happens on initilizing EvoGUI. Output to debug file with some sort of markers in code to make sure it errors exactly on initialization of EvoGUI, and that it doesnt do that elsewhere. You'd need to pinpoint the exact location where this happens in order to further be able to solve this. But I think some of the solutions listed above should work.
|
|
|
|
|
Logged
|
|
|
|
-Mervin-
Community Member

Posts: 33
|
 |
« Reply #24 on: November 13, 2008, 05:39:02 PM » |
|
well.. if i don't initialize EvoGUI everything works fine.. so the problem is not in my app i think. so far EvoGUI is the only thing that is causing errors, haven't had problems with anything else. mscorlib.dll is fine, nothing wrong with the file. 1) tried rebuilding 2) not converting anything to string? , im only doing: EssenceGUI = New EvoGUI(Inp,false) 3) all adminstrative permissions are set correctly. 4) all necessary dll's seem to be there. 5) i'm getting the error on release and also on debug. i'm 200% sure it breaks at: EssenceGUI = New EvoGUI(Inp,false) 
|
|
|
|
|
Logged
|
|
|
|
Lenn
Customers
Community Member
    
Posts: 876
+/-
|
 |
« Reply #25 on: November 14, 2008, 12:00:05 PM » |
|
Hmm ok thats interesting. I have an idea, tell me if it works: Try replacing Line 100, in EvoGUI.vb which is EvoGUI.New() BASE_PATH = Application.StartupPath.Substring(0, Application.StartupPath.LastIndexOf("\bin\")) + "\"
with something like BASE_PATH = "C:\PathToYourRootFolder\"
Path to your root folder should be the folder which also contains the folders "Images" , "Cursors" , etc, ie the root folder, where the exe usually is (but doesnt have to be). I thought the LastIndexOf would cause no problems because so many coders use it, but if it does (and this fixes your problem) then I'll have to find a safer way of finding the root dir. 
|
|
|
|
|
Logged
|
|
|
|
rootsage
Customers
Community Member
    
Posts: 444
Gamer Enthusiast
|
 |
« Reply #26 on: November 14, 2008, 12:34:25 PM » |
|
Try replacing
Line 100, in EvoGUI.vb which is EvoGUI.New()
Or, depending on the language, you can use a MessageBox.Show() to popup an alert and print out the BASE_PATH to see if the LastIndexOf is working correctly. I use MessageBox as kind of a debug tool sometimes 
|
|
|
|
|
Logged
|
while( !( succeed = try_again()) ); ------ 10 print "Is this recursive?" 20 goto 10
|
|
|
Lenn
Customers
Community Member
    
Posts: 876
+/-
|
 |
« Reply #27 on: November 14, 2008, 01:54:12 PM » |
|
Yep. Either that, or like i said above; output to debug file each step. Might be more practical instead of 10 message boxes one after another.  But in this case, since we know the most likely cause, a messagebox would work.
|
|
|
|
|
Logged
|
|
|
|
-Mervin-
Community Member

Posts: 33
|
 |
« Reply #28 on: November 17, 2008, 06:28:00 AM » |
|
@Lenn: Did you read my PM ? , i also sent you an email..
|
|
|
|
|
Logged
|
|
|
|
Lenn
Customers
Community Member
    
Posts: 876
+/-
|
 |
« Reply #29 on: November 17, 2008, 07:45:33 AM » |
|
I wasn't here for the weekend. I will reply to you shortly. No worries. 
|
|
|
|
|
Logged
|
|
|
|
|
chuck123
|
 |
« Reply #30 on: March 16, 2009, 06:14:09 PM » |
|
I know you've been told this many times but great gadgets Lenn!!!
I'm aiming to reproduce a hyperlink behavior in TV3D. Basically a textbox with something like the following
Plain static text Plain static text Plain static text Special text which brings you to a place (site) in space Special text which brings you to a different place (site) in space Plain static text Plain static text etc.
I don't think your current gadget can do this right? I wonder how I might go about doing this. Would it be easier to start from scratch as opposed to adding on to yours? Obviously I don't really want to cheat by tightly mixing textboxes and control buttons.
At this point I'm thinking I've got an array of "links" in memory that contains the position and area of each linked string pieces...each render loop I check if there was a click in one of those areas and execute the associated action. I figure I might have max 10-15 links at any one time.
What do you think? Am I totally out to lunch? I'm curious if you think this might be a feasible add-on to your control or if it would be easier to build it up from scratch.
I'll appreciated any directional nudges.
Thanks in advance.
|
|
|
|
|
Logged
|
|
|
|
kanebai
Community Member

Posts: 2
|
 |
« Reply #31 on: June 18, 2009, 06:54:40 AM » |
|
I've checked the class and function list, seems 1.01 still no drag the icon between the slots of the container. if 1.01 not complete this function, will u add it in coming update?
|
|
|
|
|
Logged
|
|
|
|
Lenn
Customers
Community Member
    
Posts: 876
+/-
|
 |
« Reply #32 on: June 19, 2009, 12:51:28 PM » |
|
There have been a few updates to EvoGUI recently , but I have not published them yet. I am working on a few more functions and features, some of which I have listed before. But, I am currently unsure if I will add container functionality. I am still in the process of designing my game menus, so once I figure out a few more things, perhaps I will need to make the container functionality also. It's just not on the to-do list right now, but check back in ~2 or 3 months.
|
|
|
|
|
Logged
|
|
|
|
|