引入:上篇文章讲解了Agent利用环境指针访问VM的线程组操作,这里讨论下堆栈操作。分类4:堆栈操作a.GetStackTrace.获取某线程的堆栈。jvmtiError
GetStackTrace(jvmtiEnv*env,
jthreadthread,
jintstart_depth,
jintmax_frame_count,
jvmtiFrameInfo*frame_buffer,
jint*count..
分类:
其他好文 时间:
2014-12-09 02:00:00
阅读次数:
158
self.imageview=[[UIImageView alloc] init]; self.imageview.frame=CGRectMake(100, 100, 100, 100); [self.view addSubview:self.imageview]; self.imagev...
分类:
其他好文 时间:
2014-12-09 00:20:05
阅读次数:
139
本程序引入了unity3d的程序,那么自然就使用到了jar包unity-class.jar这个jar包。在混淆的时候出现下列问题:
首先第一个问题:
java.io.IOException: Can't read [unity-classes.jar] (Can't process class [com/unity3d/player/UnityPlayer.class] (Unknown verification type [191] in stack map frame))...
分类:
移动开发 时间:
2014-12-08 21:34:10
阅读次数:
1228
1、GUI创建 1.GUI从创建windows开始,通常使用JFrame。 JFrame frame = new JFrame(); 2.可通过frame.getContentPane().add(BoarderLayout.CENTER,button)加入按钮、文字字段等组件,两个参数的add()...
分类:
其他好文 时间:
2014-12-08 21:00:15
阅读次数:
148
//创建圆角buttonUIButton*button = [UIButtonbuttonWithType:UIButtonTypeRoundedRect]; //指定button的位置和大小button.frame=CGRectMake(10, 10,75,75);//给button设置标签,用来...
分类:
其他好文 时间:
2014-12-08 19:32:40
阅读次数:
168
1. 先指定图像的大小UIGraphicsBeginImageContext(view.frame.size);2. 在指定的区域绘制图像[view drawViewHierarchyInRect:view.bounds afterScreenUpdates:NO];3. 获取图像上下文UIImag...
分类:
移动开发 时间:
2014-12-08 19:14:55
阅读次数:
206
按钮在执行frame动画的时候怎么响应触发事件?代码中效果(请注意,我并没有点击到按钮,而是点击到按钮的终点frame值处):对应的代码://// ViewController.m// TapButton//// Created by YouXianMing on 14/12/7.// Co...
分类:
其他好文 时间:
2014-12-08 00:38:27
阅读次数:
294
今日写一个验证码识别自动登录的程序,发现网页中验证码图片是嵌在frame框架中,一时间遇到了问题无法搞定,网上搜了很多网页也没有具体的解决办法,今日偶然尝试居然搞定了,给大家分享一下。
HTML的源程序模拟如下:
真实的场景SRC是一个类似于checkcode.ASP的链接,不能直接通过WEB地址抓取,不然图片就会变了,这个估计大家都知道,抓取这个图片的代码如下(VB2...
分类:
其他好文 时间:
2014-12-07 11:19:46
阅读次数:
209
说到getContentPane()这个方法,不得不说一下Frame和JFrame的一点区别了。JFrame继承自Frame,但是JFrame不能通过add方法直接添加组件,因为JFrame不是一个容器而是一个框架,如果想要添加组件到JFrame,可以通过getContentPane()方法得到JFrame的contentpane,到这里新的问题..
分类:
移动开发 时间:
2014-12-07 06:37:44
阅读次数:
163
1.回调(CallBack)或在C语言中叫做钩子函数(Hook)也叫做:模板方法模式
代码实现:
代码1
------------------------------------------------------------
package edu.neuq.oop.callback;
import java.awt.Frame;
public class P...
分类:
编程语言 时间:
2014-12-06 16:52:58
阅读次数:
151